<aside> š§
Navigation:
</aside>
To create your first AI agent, log in to the Deploy.AI Admin Panel and click theĀ "+ Create Agent"Ā button.

Name Your AgentĀ by assigning a clear, descriptive title. Optionally, add a short description to help identify it later.

Define Agent InstructionsĀ by filling in the agentās configuration. The config includes UI instructions, AI model selection, model prompt and agent features. Weāll cover each component in detail in the next section.

Once the configuration is complete, clickĀ "Create"Ā to deploy the agent.

While still in the editor window, go to theĀ User GroupsĀ section that appears. ClickĀ "Edit User Groups"Ā and toggleĀ Visibility ONĀ to ensure your agent is accessible.
You can now test your agent using theĀ "Use the Agent"Ā button or by accessing it atĀ chat.sandbox.deploy.ai.
Agents built on Deploy.AI can be seamlessly integrated into your internal tools, client-facing applications, or custom workflows via a secure API. This gives teams full flexibility to use AI agents not only in the Deploy web interface, but also across any environment where automation or AI assistance is needed.
Whether you're embedding an agent into a customer support dashboard, enabling document analysis inside a CRM, or powering a chatbot on your website, Deploy's API makes it straightforward.
Hereās a full walkthrough of the Deploy API integration process.
Use yourĀ client_idĀ andĀ client_secretĀ to obtain an access token.
Request
curl '<https://api-auth.sandbox.deploy.ai/oauth2/token>' \\
-X POST \\
--data-urlencode grant_type=client_credentials \\
--data-urlencode client_id=YOUR_CLIENT_ID \\
--data-urlencode client_secret=YOUR_CLIENT_SECRET
Response
{
"access_token": "YOUR_ACCESS_TOKEN",
"token_type": "Bearer",
"expires_in": 3600
}
Use the token to start a new chat session with a specific agent.
Request
curl '<https://core-api.sandbox.deploy.ai/chats>' \\
-X POST \\
-H 'Content-Type: application/json' \\
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \\
--data-raw '{"agentId":"YOUR_AGENT_ID"}'
Response
{
"id": "CHAT_ID"
}
If your agent needs to process documents, upload them to the chat session.
Request
curl '<https://core-api.sandbox.deploy.ai/chats/CHAT_ID/files>' \\
-X POST \\
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \\
-H 'Content-Type: multipart/form-data' \\
-F fieldName=inputFile \\
-F [email protected]
Response
{
"id": "FILE_ID"
}
Ask a question or initiate interaction. You can reference uploaded files usingĀ fileId.
Request
curl '<https://core-api.sandbox.deploy.ai/messages>' \\
-X POST \\
-H 'Content-Type: application/json' \\
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \\
--data-raw '{
"chatId": "CHAT_ID",
"content": [
{
"type": "form",
"value": {
"fields": [
{
"name": "inputFile",
"value": "FILE_ID"
}
]
}
}
],
"stream": false
}'
To receive streaming responses in real time, setĀ stream: trueĀ in your message request and connect via WebSocket.
WebSocket Connection
wscat -c "wss://ws.sandbox.deploy.ai/?access_token=YOUR_ACCESS_TOKEN"
| Feature | Supported? |
|---|---|
| HTTP Methods | POSTĀ (primary method) |
| Protocols | HTTPS (default), WebSocket (wss://) |
| Auth Method | OAuth2 (BearerĀ token inĀ AuthorizationĀ header) |
| Data Format | JSON for most payloads, multipart/form-data for file uploads |
| Term | Description |
|---|---|
client_id |
Your Deploy.AI client ID |
client_secret |
Your Deploy.AI client secret |
access_token |
Token used in Authorization header |
chatId |
ID of the chat session |
fileId |
ID of the uploaded file (if any) |