Skip to main content

12.10.3 A scenario for creating a ChatGPT thread and assistant

To create an assistant and a ChatGPT thread, you need to create a scenario of 4 nodes:

  • (1) Webhook node, with a URL to which a GET request is sent to initiate the scenario;
  • (2) Create Assistant, to create an assistant with parameters:

Assistant name - Latenode assistant;

Description - An assistant answering questions about the user's work on the Latenode platform, for example, about scenarios;

System instructions - Use the file to answer questions;

File IDs list - ["{{%.FileIdGPT}}"] (the value of the global variable created in the scenario for uploading the file to the ChatGPT platform;

Model ID - gpt-4-1106-preview;

Retrieval(Tools) - true.

  • (3) Create Thread, to create a thread with parameters:

New message - false;

Entity role - user.

  • (4) Webhook response, to return a response when the scenario is executed successfully.