Keep chat
Keeps a chat for the signed-in person: a new one, or with an id the whole of an earlier one again. The fifty latest are kept.
/v1/ask/chatsThis method answers a person who is signed in to the dashboard. A request with an API key is refused with 403, so it cannot be tried from this page.
Body parameters
idstringThe id of the chat to save over. Without it a new chat is made. Up to 64 characters.
entriesobject[]RequiredThe whole conversation, oldest first. Up to 80 items.
entries[].idstringRequiredAn id for the entry, unique in the chat. Up to 64 characters.
entries[].rolestringRequiredWho said it:
userorassistant.One of
userassistantentries[].textstringWhat was said. Up to 4,000 characters.
entries[].stepsobject[]The methods that were run for this answer. Up to 20 items.
entries[].steps[].callstringRequiredThe method that was run. Up to 80 characters.
entries[].steps[].titlestringRequiredThe method in a few words. Up to 500 characters.
entries[].steps[].okbooleanRequiredWhether it worked.
entries[].changeobjectThe change that was proposed with this answer.
entries[].change.callstringRequiredThe method the assistant proposed. Up to 80 characters.
entries[].change.titlestringRequiredThe method in a few words. Up to 500 characters.
entries[].change.descriptionstringRequiredWhat running it does. Up to 4,000 characters.
entries[].change.effectstringRequiredWhat it does to your data:
write,sendordestroy.One of
readwritesenddestroyentries[].change.inputRecord<string, unknown>RequiredThe input it is run with.
entries[].change.statestringRequiredWhere the proposal stands:
waiting,busy,done,dismissedorfailed.One of
waitingbusydonedismissedfailedentries[].change.faultstringWhy it failed, when it did. Up to 500 characters.
entries[].faultstringWhy the answer failed, when it did. Up to 500 characters.
entries[].offbooleanWhether the assistant was not connected when this was asked.
Returns
object"chat"Always
chat.idstringThe id of the chat.
titlestringThe first question, shortened.
updatedAtstringWhen the chat was last saved.
createdAtstringWhen the chat was started.