Build AI-powered conversational and task agents. Create agents with custom tools and guardrails, deploy them to messaging and voice channels, run conversations programmatically, and access interaction history.Base path:/v1/agents
POST /v1/agents/{id}/deployActivate an agent and make it available on its configured channels. The agent must have a valid system_prompt and at least one channel configured.
curl -X POST https://orbit-api.devotel.io/api/v1/agents/agt_abc123/chat \ -H "X-API-Key: dv_live_sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "message": "What is the status of order ORD-12345?", "context": { "customer_name": "Jane Doe", "customer_id": "cust_xyz" } }'
{ "data": { "conversation_id": "conv_abc123", "message_id": "amsg_001", "role": "assistant", "content": "Hi Jane! I found your order ORD-12345. It was shipped yesterday via FedEx and is expected to arrive by March 10th. The tracking number is FX-987654321.", "tool_calls": [ { "tool": "lookup_order", "input": { "order_id": "ORD-12345" }, "output": { "status": "shipped", "carrier": "FedEx", "eta": "2026-03-10" } } ], "tokens_used": { "input": 245, "output": 62 }, "latency_ms": 1840 }, "meta": { "request_id": "req_chat_001", "timestamp": "2026-03-08T12:00:00Z" }}
const orbit = new Devotel({ apiKey: 'dv_live_sk_xxxx' })const agent = await orbit.agents.create({ name: 'Support Bot', type: 'conversational', model: 'gpt-4o', systemPrompt: 'You are a helpful support agent.', channels: ['web', 'whatsapp'],})await orbit.agents.deploy(agent.data.id)const response = await orbit.agents.chat(agent.data.id, { message: 'Hello, I need help with my order.',})console.log(response.data.content)
orbit = OrbitClient(api_key="dv_live_sk_xxxx")agent = orbit.agents.create( name="Support Bot", type="conversational", model="gpt-4o", system_prompt="You are a helpful support agent.", channels=["web", "whatsapp"],)orbit.agents.deploy(agent.data.id)response = orbit.agents.chat( agent.data.id, message="Hello, I need help with my order.",)print(response.data.content)