Skip to main content
Send a message to a Botsify bot and receive an AI-generated response in real time. You identify the bot with your API key and the end-user with a session identifier (fbId), which can be a Facebook user ID or any custom string that uniquely represents a user session. The bot uses this identifier to maintain conversational context across multiple turns.

Request

string
required
The user’s message or question to send to the bot.
string
required
Your bot’s API key. Alternatively, pass the same value as the X-Api-Key request header instead of including it in the body.
string
required
A unique identifier for the end-user or session. Can be a Facebook user ID or any custom string (e.g. a UUID) that you generate to represent a session. The bot uses this to maintain context across messages.

Example

Using the X-Api-Key header instead:

Response

A successful 200 OK response returns the bot’s reply along with metadata about the matched intent or flow.