Retrieve chat
One kept chat with everything that was said in it.
opensend.ask.chat(id)opensend ask chatThis method answers a person who is signed in to the dashboard. A call with an API key is refused with 403.
Input
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"chat"Always
chat.idstringThe id of the chat.
titlestringThe first question, shortened.
updatedAtstringWhen the chat was last saved.
createdAtstringWhen the chat was started.
entriesobject[]The whole conversation, oldest first.
entries[].idstringAn id for the entry, unique in the chat. Up to 64 characters.
entries[].rolestringWho said it:
userorassistant.One of
userassistantentries[].textstringOptionalWhat was said. Up to 4,000 characters.
entries[].stepsobject[]OptionalThe methods that were run for this answer. Up to 20 items.
entries[].steps[].callstringThe method that was run. Up to 80 characters.
entries[].steps[].titlestringThe method in a few words. Up to 500 characters.
entries[].steps[].okbooleanWhether it worked.
entries[].changeobjectOptionalThe change that was proposed with this answer.
entries[].change.callstringThe method the assistant proposed. Up to 80 characters.
entries[].change.titlestringThe method in a few words. Up to 500 characters.
entries[].change.descriptionstringWhat running it does. Up to 4,000 characters.
entries[].change.effectstringWhat it does to your data:
write,sendordestroy.One of
readwritesenddestroyentries[].change.inputRecord<string, unknown>The input it is run with.
entries[].change.statestringWhere the proposal stands:
waiting,busy,done,dismissedorfailed.One of
waitingbusydonedismissedfailedentries[].change.faultstringOptionalWhy it failed, when it did. Up to 500 characters.
entries[].faultstringOptionalWhy the answer failed, when it did. Up to 500 characters.
entries[].offbooleanOptionalWhether the assistant was not connected when this was asked.