Skip to main content

Read the latest preparation reply

GET 

https://platform.docana.com/api/v1/employees/:id/prepare-message/

The latest turn of a preparation thread owned by the caller: its status (running, completed, failed or stopped), the reply text, pending questions and the tools it has used. Call it every 15 to 30 seconds after askEmployeePreparation answers with status "running". Completed is the only status with a final reply. After failed or stopped, read getEmployeePreparationStatus and listAgents before sending a new message, because part of the work may be saved.

Request​

Responses​

Status, reply text and tool states of the latest turn