Agent Graph
Invoke (Stream)
Send customer input events to a Connectly AI agent and receive a streaming NDJSON response ⌨️
POST
Invoke (Stream)
Send customer input to a Connectly AI agent and receive the agent’s reply as a streaming NDJSON response. Each line of the response body is a complete, self-contained JSON event. You must initialise a session and obtain a
See NDJSON streaming for a complete parsing guide.
sessionId before calling this endpoint.
Endpoint
Request body
Your Connectly business identifier.
The unique identifier for the customer in this conversation.
Optional override to target a specific agent within your configuration.
The list of events to pass to the agent. Include all events since the last call — for example, if an automated welcome message was sent, include it as an assistant
messageEvent so the agent has full context.Each element is an object containing exactly one event key:Response
A200 status with a streaming NDJSON body. Read the response line by line; each line is a self-contained JSON event from the agent.
