Use Cases
Two real agents, end-to-end, with the recommended integration pattern. The agents are different — different provider, different model, different MCP tools, different output type — but every integration looks the same from the caller's side.
Example 1 — Order Management Agent
A company has an MCP server that exposes order management tools. They create an agent in the SentientOne platform that instructs the LLM to use those tools to fetch order details, delivery status, and product information.
Name
Provider
Model
Temperature
Output type
System prompt
You are an Order Management Assistant connected to the company MCP server. You have access to: get_order(order_id, user_id) get_delivery_status(order_id) get_order_products(order_id) When asked about an order, extract the OrderId and UserId, call the appropriate tools, and return a JSON summary with status, items, prices, delivery estimate, and tracking number.
- 1
Create the agent in the platform UI
Pick Custom (or an Order template if available), paste the system prompt above, set output type toJSON, attach your MCP server, and save. - 2
Call the agent from your application
bashcurl -N -X POST https://api.sentientone.ai/v1/chat/stream \ -H "Content-Type: application/json" \ -H "X-Api-Key: sk-so-your_api_key_here" \ -H "X-Agent-Id: ORDER_AGENT_UUID" \ -d '{ "message": "Get full order details including delivery and products for OrderId: ORD-78923 and UserId: USR-4412" }' - 3
Receive the streamed response (SSE)
textdata: {"type":"meta","conversation_id":"conv-uuid-...","trace_id":"trace-uuid-..."} data: {"type":"sources","sources":[{"index":0,"id":"src-...","title":"Order ORD-78923","url":null,"source_type":"mcp","score":0.91,"snippet":"status: shipped · carrier: FedEx"}]} data: {"type":"delta","content":"{\"order_id\":\"ORD-78923\","} data: {"type":"delta","content":"\"status\":\"shipped\",\"total\":115.97,"} data: {"type":"delta","content":"\"delivery\":{\"tracking\":\"FX-998877\"}}"} data: {"type":"done","conversation_id":"conv-uuid-...","trace_id":"trace-uuid-..."}The full answer is the concatenation of every
deltaevent'scontentin order. For aJSONoutput agent, concatenate all deltas first, thenJSON.parse()the assembled string.
Example 2 — Product Lookup Agent
A separate agent focused purely on product catalog queries — using Anthropic's Claude with different MCP tools and a different system prompt. Same caller, different X-Agent-Id.
Name
Provider
Model
Output type
System prompt
You are a Product Catalog Assistant. You have access to: search_products(query, category?, limit?) get_product(product_id) get_recommendations(product_id, limit?) Return comprehensive details including name, price, availability, key specs, and related products.
curl -N -X POST https://api.sentientone.ai/v1/chat/stream \
-H "Content-Type: application/json" \
-H "X-Api-Key: sk-so-your_api_key_here" \
-H "X-Agent-Id: PRODUCT_AGENT_UUID" \
-d '{ "message": "Show me the details for product PRD-2210 and suggest similar items" }'The response streams back as Server-Sent Events — a meta event, an optional sources event, a series of delta events whose content you concatenate to form the full answer, and a final done event.
Integration pattern
The recommended layout for companies integrating SentientOne into their stack:
React · Next.js
Flutter · React Native
Slack · CLI · Cron
All callers → POST https://api.sentientone.ai/v1/chat/stream with X-Api-Key + X-Agent-Id.
Order Agent
GPT-4o · JSON
→ MCP: get_order()
Product Agent
Claude · Text
→ MCP: search_products()
Support Agent
GPT-4o · Markdown
→ MCP: get_tickets()
Single source of truth for orders, products, support tickets, and anything else your agents need to look up.
Quick-start summary
- 1. Create agentsIn the SentientOne platform, configure agents with system prompts, models, and LLM keys for each use case.
- 2. Copy your API keyFrom Settings → API Key (
sk-so-…). - 3. Copy your Agent IDFrom Agents → Agent ID chip.
- 4. Call from your app
POST https://api.sentientone.ai/v1/chat/streamwithX-Api-KeyandX-Agent-Idheaders, body{ "message": "…" }. - 5. Read the SSE streamConcatenate every
deltaevent'scontentfor the full AI response; thesourcesevent lists any retrieved or MCP-tool context, anddonecarries the finalconversation_id.
Best practices for production
conversation_id for multi-turn flows. Use JSON output type when your caller will JSON.parse() the reply. Use a low temperature (0.1–0.3) for deterministic lookups, higher for creative tasks. Never call the API directly from client-side code — always proxy through your backend so the platform key stays secret.