Skip to main content

Overview

Conversations consist of a messageThread which contains dialogues. They each have a role and content property.:

Models

We current support the following models:

CRUD conversations

You can run the CRUD operations:

Read Conversation

You can submit the ReadConversation event which will return the entire messageThread.

The response will be something like:
You can use ReadConversation to get the entire message thread, and parse and do what you want with it.

Append Dialogue

You can submit the AppendDialogue event which will, add the dialogue you provide to the end of the messageThread, and return the entire messageThread.

The response will be the message thread with the appended dialogue. You can use AppendDialogue to add a message to the conversation. For example,if you were retrieving data from a database you could pass it as information in a system message. If you were

Update Dialogue

You can submit the UpdateDialogue event which will return the entire message thread.

The response will be the message thread with the appended dialogue. You can use UpdateDialogue to change a message in the conversation. For example, if you wanted to fill in information about the user in a system message as you learn it.

Delete Dialogue

You can submit the DeleteDialogue event which will return the entire message thread.

The response will be the message thread with the appended dialogue.