Prerequisites


How it works
You send a POST request to the chatbot endpoint with your message. VectorShift runs the connected workflow and returns the chatbot’s response. To maintain conversation continuity across multiple messages, you include theconversation_id from the previous response in each subsequent request.
- First message: Send your text without a
conversation_id. The API returns the bot’s response along with a newconversation_id. - Subsequent messages: Include the
conversation_idfrom the previous response. The chatbot retrieves the conversation history and responds in context. - New conversation: Omit the
conversation_idto start a fresh conversation at any time.
Endpoint
Request headers
Request body
Response (non-streaming)
Response (streaming)
Whenstream is set to true, the response is delivered as Server-Sent Events. Each event contains a chunk of the response text. The final event includes the complete output and the conversation_id.
Code examples
Python
JavaScript
cURL
Error handling
If the chatbot fails to run (for example, the connected workflow encounters an error), the response will have"status": "failed" and include an error message. Check that your chatbot is deployed and that the connected workflow is functioning correctly.
For the full API reference, including upload, terminate, and listing endpoints, see the API Reference.

Next steps
Analytics and conversation history
Track usage, review conversations, and export data
Sharing and deploying
Explore other deployment channels
