Skip to main content

04.6.2.06 Create Thread

Node Description

Create Thread - an action type node required to create a thread.

Node Configuration

To configure the Create Thread node, you must fill in the required and optional fields.

Required* fields include:

  • API Key.

API Key

The field required for entering the API key (see more details here).

New message

A field with the option to select true/false. If true is checked, a message will be sent in the Message content field when creating a thread. If false is checked, the thread will be created empty.

Message content

The text field required to enter the message.

File IDs list

A list of File IDs that the message should use. There can be a maximum of 10 files attached to a message.

Metadata

The field required to enter additional information about the assistant in the key-value format. The key can contain 64 characters, and the value can contain 512 characters.

Entity role

The role of the entity that is creating the message. Currently only user is supported.

Example of launching a node

It is necessary to run the Create Thread node once with the parameters:

  • API Key - Your API key;
  • New message - true;
  • Message content - Welcome to the Latenode platform! I am waiting for your questions;
  • Entity role - User.

The result of node execution is the creation of a thread with the specified message (if such a setting has been made). The output data of the Create Thread node are the parameters of the thread.