Documentation
Everything you need to put your AI support agent to work.
Quick start
- Create your account. Your free trial starts immediately.
- Create an organization (your business) and name your AI agent.
- Add knowledge: import your website, upload documents or write FAQs.
- Test it in the Playground, then tune its behaviour and appearance.
- Go live: paste the widget code on your site, connect WhatsApp or plug in your app.
Training your agent
Your agent answers from its knowledge base, which you build from four kinds of sources:
- Website import: paste your URL and choose how many pages to read. Re-import whenever your site changes.
- Documents: PDF, Word (.docx), TXT, Markdown or CSV up to 10 MB (price lists, menus, policies, brochures).
- FAQs: question and answer pairs. Best for precise answers you want given word for word.
- Text: paste anything else your agent should know.
When your agent can't answer something, it says so honestly and logs the question under Analytics → Questions your AI couldn't answer. From the inbox you can also click Teach AI this answer on any reply to save it as a FAQ.
Website widget
Paste this before the closing </body> tag. Find your bot key under Agent → Channels.
<script src="https://sora247.com.ng/widget.js" data-bot="YOUR_BOT_KEY" async></script>Options
data-open="true"opens the chat automatically on page load.- Control it from JavaScript:
window.Sora247.open(),.close(),.toggle(). For example, link a "Chat with us" button to it.
Allowed websites
Under Channels → Allowed websites, list the domains that may show your widget. Subdomains are included automatically.
Sora247 uses Meta's official WhatsApp Business Platform (Cloud API) with your own Meta app and number, so your number is never at risk of being banned.
- At developers.facebook.com/apps, create a Business app and add the WhatsApp product.
- Under WhatsApp → API Setup, add and verify your business phone number. Copy its Phone number ID.
- In Business Settings → Users → System users, create an admin system user, assign it your app and WhatsApp account (full control), then Generate token with
whatsapp_business_messagingandwhatsapp_business_management. Choose "Never expire". - Copy your App secret from App settings → Basic.
- In Sora247, open Agent → Channels → WhatsApp and paste the Phone number ID, token and App secret.
- Copy the Callback URL and Verify token Sora247 shows you into WhatsApp → Configuration → Webhook, click Verify and save, then subscribe to the messages field.
- Add a payment method in WhatsApp Manager and switch your Meta app to Live.
Send a message to your number. Your AI agent replies within seconds, and the conversation appears in your Sora247 inbox.
WhatsApp rules: businesses can reply freely within 24 hours of the customer's last message. After that the customer must message you again. Meta charges its own conversation fees directly to your Meta account.
Mobile app & REST API
Option A: drop-in chat screen
Load your hosted chat page in a WebView. It handles everything: AI replies, human handoff, history.
https://sora247.com.ng/chat/YOUR_BOT_KEY?embed=1Option B: REST API
Create an API key under Agent → Channels → Mobile app. Call the API from your backend, never from the app itself, so your key stays secret. Use your own user ID as userId so each user keeps their conversation.
Send a message
POST https://sora247.com.ng/api/v1/chat
Authorization: Bearer sora_live_xxx
Content-Type: application/json
{
"userId": "user_123",
"message": "Hi, where is my order 4821?",
"user": { "name": "Ada Obi", "email": "ada@example.com", "phone": "+2348012345678" },
"newConversation": false
}Response:
{
"conversationId": "cm…",
"status": "BOT", // BOT | WAITING_HUMAN | HUMAN | RESOLVED
"message": { "id": "…", "role": "user", "content": "Hi, where is my order 4821?", "createdAt": "…" },
"reply": { "id": "…", "role": "assistant", "content": "Your order shipped yesterday…", "createdAt": "…" }
}reply is null when a human from your team is handling the conversation. Poll for their replies:
GET https://sora247.com.ng/api/v1/chat?userId=user_123&after=2026-11-24T10:00:00.000Z
Authorization: Bearer sora_live_xxxAsk for a human
POST https://sora247.com.ng/api/v1/chat/handoff
Authorization: Bearer sora_live_xxx
{ "userId": "user_123", "reason": "Wants a refund" }Errors
Errors return a JSON body {"error": "…"} with status 400 (bad input), 401 (bad key), 403 (plan doesn't include the API), 429 (rate limited).
Agentic actions
Actions let your agent call your own systems. When a customer needs something an action can do, the agent collects the details, confirms with the customer, then sends a request to your endpoint:
POST https://api.yourstore.com/orders/status
Content-Type: application/json
Authorization: Bearer <your header value>
{
"order_id": "4821",
"_sora": {
"conversationId": "cm…",
"channel": "WHATSAPP",
"contact": { "name": "Ada", "email": null, "phone": "+234…" }
}
}Return any JSON or text. The agent reads it and explains the result to the customer. For GET requests, the parameters are sent as query string values instead.
- Endpoints must use HTTPS and be reachable on the public internet.
- Respond within 15 seconds. Responses are truncated to 4,000 characters.
- Every call is logged under Agent → Actions.
Human handoff
A conversation moves to your team when the customer taps Talk to a human, asks for a person, or the AI decides a person is needed. Then:
- Team members with notifications on get an email.
- The conversation appears under Inbox → Needs human.
- The AI stays silent while your team handles the chat. Click Hand back to AI when you're done, or Resolve.