A

AfriRoute

Developer Portal

public api
Sign in
AI Chatbots

Build channel bots with real webhook and provider workflows

AI chatbot docs should explain how developers create a bot, connect a model provider, test behavior, and route messages through supported channels like WhatsApp, SMS, or contact-center surfaces.

Bot lifecycle

Document the workflow, not just the endpoint list

Developers should see how chatbots fit into the rest of the platform: inbound message, model or rule evaluation, response generation, webhook logging, and escalation when automation is not enough.

Core APIs

GET /api/v1/ai-chatbots/bots
POST /api/v1/ai-chatbots/bots
PUT /api/v1/ai-chatbots/bots/{id}
POST /api/v1/ai-chatbots/bots/{id}/test

Recommended bot setup path

1

Create the bot and define the channel or use case.

2

Connect the bot to a webhook, queue, or supported channel surface.

3

Configure the AI provider, prompt policy, or bot behavior rules.

4

Test the bot before moving into live traffic.

Example flow

Bot request and provider handoff

POST /api/v1/ai-chatbots/bots

{
  "name": "Support Assistant",
  "channel": "whatsapp",
  "provider": "openai",
  "model": "gpt-4.1-mini",
  "webhookUrl": "https://example.com/webhooks/bot"
}