Connect your business platform
Let your assistant look up live products, stock, prices and orders, and submit requests, through your own API, safely and with your permission.
A business platform connection links your assistant to your own system's API: your online shop, booking system, school portal or any app with a REST API. Once connected, the assistant can answer with live data ("Is the black Size 42 in stock?", "Agizo langu namba 1043 liko wapi?") instead of only what is in your documents. It can also submit requests, but only after the customer confirms.
This is optional. Your assistant works perfectly well without it.
#Where to find it
- In a workspace, the Integrations tab lists every connection in that workspace.
- Inside an assistant, open More tools and choose Connected systems.
Each assistant can have one business platform connection (and separately one CRM connection).
#Setup at a glance
The dashboard shows a Setup progress checklist. A connection can only go live when every step is done:
- Add your platform's API address
- Add credentials
- Test the connection
- Add at least one operation
- Test an operation and check its response
- Choose what the agent may do
#1. Base URL and authentication
Base URL is the address all requests start from, for example https://api.duka-langu.co.tz. It must use https://. Addresses that point to private or internal networks are blocked. Redirects are not followed, so use the final address.
Choose an authentication type:
| Type | What you provide |
|---|---|
| No authentication | Nothing. For public APIs only. |
| API key | The key, plus where it goes: a request header (recommended, default name X-API-Key) or the URL query string. An optional prefix is supported. |
| Bearer token | A token sent as Authorization: Bearer .... |
| Username & password | HTTP Basic authentication. |
| OAuth2 (client credentials) | Token URL, client ID and client secret. |
Credentials are write-only: they are stored encrypted and never shown again or sent back to your browser. The dashboard only tells you which secrets are set. They are never placed in the AI's prompt or in logs.
You can also add default headers (for example X-Store: main) and a timeout (between 2 and 15 seconds, default 10). Headers that look like credentials, such as Authorization or anything containing "token" or "secret", are refused here; put them in the authentication step so they are encrypted.
Optionally set a health check path (a GET path such as /v1/ping). Test connection calls it to check that BotBaseX can reach your server.
#2. Define operations
An operation is one thing the assistant may do, such as "Search products" or "Check order status". You can add up to 25 operations per connection.
For each operation you set:
- Name and description - the description helps the AI pick the right operation.
- Type - a label such as Search products, Get product details / price, Check stock, Check order status, Check appointment availability, Submit a request (changes data), or Something else.
- Method and path -
GET,POST,PUTorPATCH, and a path relative to the base URL, for example/v1/products. - Query, headers and body - values can include placeholders such as
{{query}}or{{order_number}}. The body can be JSON, form, or none.
#Read or write
GEToperations are reads.PUTandPATCHare always writes.POSTis a write unless you explicitly mark it as read-only (many search APIs use POST).
#Inputs (values the agent asks the customer for)
Every placeholder in an operation must be an input. If you forget one, it is added for you. Each input has a key, a label, a type (text, number, true/false or date), whether it is required, and a description. Up to 15 inputs per operation.
An input can be linked to customer details: Customer name, Customer email or Customer phone. Those inputs are only sent if you allow that kind of customer data in permissions.
The AI can only fill in the inputs you declared. Nothing else is sent.
#Response field mapping (what the agent may read)
You decide exactly which parts of your API's response the assistant can see:
- Result shape: a list of items (for example products) or one item (for example an order).
- Results path: where the list sits in the response, for example
data.items. - Fields: names the agent sees mapped to paths in the response, for example
nametotitleandpricetopricing.amount. In the test result you can click a field to let the agent read it. - Maximum results: up to 10 items per lookup (default 5).
Data you do not map never reaches the AI. This is how you keep internal fields, cost prices or other customers' data private.
#Import from OpenAPI (optional)
If your API has an OpenAPI 3.x or Swagger 2.0 specification, click Import OpenAPI and paste it as JSON or YAML (a URL cannot be fetched). BotBaseX proposes draft operations from the GET, POST, PUT and PATCH endpoints (up to 60), with inputs from path, query and body parameters. DELETE endpoints are ignored.
Importing enables nothing. You choose which operations to keep, then map, test and allow them like any other.
#3. Test each operation
Use the operation's test to send a real request with sample values. The result shows:
- whether it passed, the HTTP status and how long it took
- What the agent sees: exactly the mapped fields
- a raw sample of the response and suggested field paths
A read operation only passes once you have mapped at least one response field and the mapped fields are actually found in the response.
If you later change the base URL, authentication, credentials, headers or the operation itself, its test is no longer valid and you must test again ("Settings changed — test again.").
#4. Permissions (default deny)
Under Permissions, you choose what the agent may do:
- Every operation starts disabled. The agent can use an operation only if it is allowed and has passed its test for the current settings.
- Customer details the agent may send to your platform: name, email, phone. Operations that need a detail you have not allowed stay disabled.
- Writes always need the customer's confirmation. This cannot be switched off. You can also require confirmation for read operations.
There is no permission for administration, arbitrary endpoints or database access. The agent can only call the operations you defined, tested and allowed.
#How confirmation works in a chat
When the assistant wants to run a write, for example submitting an order request, it first shows the customer the details and asks them to confirm. The request is sent only after the customer replies and confirms, with the same details. A pending request expires after 30 minutes.
The assistant is instructed never to say an order or request succeeded unless your platform confirmed it. If a write times out or fails in an uncertain way, it is not retried automatically, so nothing is sent twice. For reads, if your API fails, the assistant says so instead of guessing stock, prices or order status.
#Test mode and going live
New connections start in test mode (draft):
- They are only used in the assistant's Try it test chat in your dashboard, never for visitors.
- Lookups return real data. Writes are simulated: nothing is sent, and the chat and the logs label it as "simulated (test mode, nothing sent)".
When the checklist is complete, click Go live and confirm that the agent may perform real actions on your system. From then on the connection is used on your website widget, hosted chat page and other public channels, and writes are sent for real (after customer confirmation). Even when live, writes in your own dashboard test chat stay simulated.
If you change technical settings of a live connection (base URL, authentication, credentials, headers or operations), it returns to test mode automatically until you go live again.
#Pause and disconnect
- Pause stops a live connection immediately. Resume makes it live again.
- Disconnect deletes the connection, its encrypted credentials and any pending actions. This cannot be undone.
#Activity logs
Activity & errors shows recent lookups, actions and tests, with outcome, HTTP status, duration and a short message, plus a chart of the last 14 days. Logs never store request bodies, full URLs with query strings, headers or credentials, and messages are cleaned of your secrets before they are saved.
Common error messages you may see:
| Message | What to check |
|---|---|
| The platform rejected the credentials (401/403). | API key, token or password. |
| The endpoint returned 404 Not Found. | The operation's path. |
| The endpoint redirected. | Use the final URL; redirects are not followed. |
| This URL points to a private or restricted address. | Use a public https:// address. |
| The platform did not answer in time. | Your API's speed, or raise the timeout (max 15 s). |
| Too many requests to this connection in the last minute. | BotBaseX limits each connection to about 60 calls per minute. |
#Related
- CRM lead sync
- Security and privacy
- Running a management system for staff? See Management Agents.