Send a message to a conversation in openai format.

Send a message to a conversation within an agent (formerly known as project) identified by its unique projectId and sessionId. This endpoint enables you to send a new message to a specific conversation, facilitating seamless communication and collaboration within the agent. By providing the projectId and sessionId, you can target the desired conversation and contribute to the ongoing discussion. This API endpoint supports real-time streaming, allowing for instant message delivery and dynamic updates which enables efficient and interactive communication between the user and agent. Here is an example to send a message to a conversation: API SDK.

Send a message to a conversation within an agent (formerly known as project) identified by its unique projectId and sessionId.

This endpoint enables you to send a new message to a specific conversation, facilitating seamless communication and collaboration within the agent. By providing the projectId and sessionId, you can target the desired conversation and contribute to the ongoing discussion.

This API endpoint supports real-time streaming, allowing for instant message delivery and dynamic updates which enables efficient and interactive communication between the user and agent.

Here is an example to send a message to a conversation: API SDK.

Example usage CURL (create a new conversation and send a message to it using a single curl command (in OpenAI style).

curl -X POST "https://app.customgpt.ai/api/v1/projects/12345/chat/completions" \
  -H "Authorization: Bearer API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Hi there, start a new chat please!"}],"model": "gpt-4-o", "stream": false, "lang": "en"}'

Note: The model key will be ignored.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!