Skip to the page

Retrieve chat

One kept chat with everything that was said in it.

View as
opensend.ask.chat(id)
Needs the scopeworkspace:read
Signed-in person only
From a terminalopensend ask chat

This 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.

  • idstringRequired

    The 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.

  • idstring

    The id of the chat.

  • titlestring

    The first question, shortened.

  • updatedAtstring

    When the chat was last saved.

  • createdAtstring

    When the chat was started.

  • entriesobject[]

    The whole conversation, oldest first.

  • entries[].idstring

    An id for the entry, unique in the chat. Up to 64 characters.

  • entries[].rolestring

    Who said it: user or assistant.

    One ofuserassistant

  • entries[].textstringOptional

    What was said. Up to 4,000 characters.

  • entries[].stepsobject[]Optional

    The methods that were run for this answer. Up to 20 items.

  • entries[].steps[].callstring

    The method that was run. Up to 80 characters.

  • entries[].steps[].titlestring

    The method in a few words. Up to 500 characters.

  • entries[].steps[].okboolean

    Whether it worked.

  • entries[].changeobjectOptional

    The change that was proposed with this answer.

  • entries[].change.callstring

    The method the assistant proposed. Up to 80 characters.

  • entries[].change.titlestring

    The method in a few words. Up to 500 characters.

  • entries[].change.descriptionstring

    What running it does. Up to 4,000 characters.

  • entries[].change.effectstring

    What it does to your data: write, send or destroy.

    One ofreadwritesenddestroy

  • entries[].change.inputRecord<string, unknown>

    The input it is run with.

  • entries[].change.statestring

    Where the proposal stands: waiting, busy, done, dismissed or failed.

    One ofwaitingbusydonedismissedfailed

  • entries[].change.faultstringOptional

    Why it failed, when it did. Up to 500 characters.

  • entries[].faultstringOptional

    Why the answer failed, when it did. Up to 500 characters.

  • entries[].offbooleanOptional

    Whether the assistant was not connected when this was asked.