Skip to main content
A follow-up message continues a session with a new prompt. The agent keeps the conversation so far, so you can ask it to correct something, go one step further, or try again after a failure.

Send one

The call returns 202. The session id does not change: keep following the same session. The follow-up uses the session’s phone. For an agent’s session, that is the phone the agent has now.

While the session is still working

You do not have to wait for the session to finish. If it is still working, the follow-up waits behind the current work and starts when it ends. The response then has queued: true and an invocationId. To withdraw it before it starts, see Stop a session.

Safe retries

Send an Idempotency-Key header. Sending the same key again returns the original follow-up instead of sending a second one. If the call returns 502 with error: "dispatch_outcome_unknown", the follow-up may have been accepted: retry with the same key.

Follow-up or new turn?

  • Send a follow-up message to continue one specific session, for example to fix its result or to resume it after it ran out of credits.
  • Send a new turn to give an agent its next task. The agent still remembers its earlier turns. See Send a turn.

Errors