API Documentation
Everything you need to integrate Office 168/52 into your applications
Everything you need to integrate Office 168/52 into your applications
The Office 168/52 API provides powerful customer service automation capabilities through a simple REST API. Our AI-powered platform enables businesses to deliver exceptional customer experiences with intelligent conversation management, real-time analytics, and seamless integrations.
All API requests require authentication using API keys. Get started by generating your API key from the dashboard settings.
AI-powered conversations with context awareness and business knowledge integration
Comprehensive metrics and insights into customer interactions and AI performance
Connect with WooCommerce, Shopify, Stripe, and other business platforms
curl -X POST https://api.askbob.ai/api/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hello, I need help with my order",
"customer_id": "cust_12345",
"business_id": "your_business_id"
}'
Secure your API requests with proper authentication
Office 168/52 uses API key authentication. Include your API key in the Authorization header of every request using the Bearer token format.
Authorization: Bearer YOUR_API_KEY
Send a message to the AI assistant
This endpoint allows you to send a message to Bob AI and receive an intelligent response. The AI will use your business context and customer history to provide personalized assistance.
| Parameter | Type | Required | Description |
|---|---|---|---|
message |
string | required | The customer's message or question |
customer_id |
string | required | Unique identifier for the customer |
business_id |
string | required | Your business identifier |
conversation_id |
string | optional | Continue an existing conversation |
context |
object | optional | Additional context for the conversation |
{
"message": "I need help tracking my order #12345",
"customer_id": "cust_abc123",
"business_id": "unityxpressions",
"context": {
"page_url": "https://example.com/orders",
"user_agent": "Mozilla/5.0...",
"session_id": "sess_xyz789"
}
}
{
"success": true,
"conversation_id": "conv_abc123",
"response": "I'd be happy to help you track your order! Order #12345 is currently being prepared and will ship within 1-2 business days. You'll receive a tracking number once it ships.",
"confidence": 0.95,
"model_used": "gpt-3.5-turbo",
"response_time": 1.2,
"timestamp": "2024-01-15T10:30:00Z"
}
{
"success": false,
"error": "Bad Request",
"message": "Missing required parameter: message",
"code": "MISSING_PARAMETER"
}
{
"success": false,
"error": "Unauthorized",
"message": "Invalid API key",
"code": "INVALID_API_KEY"
}
Official and community-maintained libraries
Official JavaScript SDK for browser and Node.js
npm install @askbob/sdk
Python SDK with async support
pip install askbob-python
Ruby gem for Rails integration
gem install askbob
import { AskBobClient } from '@askbob/sdk';
const client = new AskBobClient({
apiKey: 'your_api_key',
baseURL: 'https://api.askbob.ai'
});
async function sendMessage() {
const response = await client.chat.send({
message: 'Hello, I need help!',
customerId: 'cust_123',
businessId: 'your_business'
});
console.log(response.data.response);
}
from askbob import AskBobClient
client = AskBobClient(api_key='your_api_key')
response = client.chat.send(
message='Hello, I need help!',
customer_id='cust_123',
business_id='your_business'
)
print(response.response)