Skip to main content
const dialogue = {
  role:"system", // or "user", "assistant" 
  content:"Tell the user that they are nice"
};

canopy.appendDialogue(dialogue);
You can add a dialogue to the end of the messageThread.

Parameters

dialogue
string
required
A dialogue must consist of a role and content. More information on allowed value can be found here.

Response

You will get a JSON response with the following fields:
success
boolean
timestamp
number
messageThread
array
An array of objects, where each object is a dialogue.