Connect Your Agent to APIs and Real-Time Data
Connectors allow your agent to call external APIs to access real-time data from your systems:
Result: The agent responds with up-to-date information from your real systems.
Customer: "What's the status of my order #12345?"
Agent: "I'll check your order. Orders take 3-5 days."
Customer: "What's the status of my order #12345?"
[Agent calls your inventory API]
Agent: "Your order #12345 shipped today from the warehouse.
It will arrive tomorrow between 2-5 PM. Tracking: TR123456789"
Every Connector needs 5 parts:
The connector name. The same rule applies to the name of each tool:
Valid: WooCommerce_Old_Scull, crm_post, get_order_status, GetOrderStatus
Invalid: WooCommerce Old Scull, crm-post
Your API domain:
https://api.yourcompany.com
How your API validates requests:
Option 1: API Key
Header: Authorization: Bearer sk_live_abc123def456
Option 2: OAuth 2.0 client credentials
Uses client credentials issued by your API.
There is no end-user login: the customer does not
authorise the connection.
The actions the agent can perform:
GET /orders/{order_id} → Get order status
GET /customers/{email} → Get customer data
POST /tickets → Create support ticket
GET /inventory → Check stockThe data the agent sends to each endpoint:
GET /orders/{order_id}
Parameters:
- order_id (required) → Order ID
- format (optional) → json/xmlConnector: Inventory + Orders
Endpoints:
Benefit: Customer gets real answer in 2 seconds with no intermediaries.
Connector: CRM + Account Data
Endpoints:
Benefit: Tech support without manual access to systems.
Connector: Calendar + CRM
Endpoints:
Benefit: Agent schedules appointments without human intervention.
In WOZTELL:
Channels
→ Your channel
→ Meta AI Agent
→ Scroll down
→ "Advanced"
→ "Connectors"
WooCommerce_Old_Scull
Use only letters, numbers and underscores. No spaces, hyphens, periods, slashes or accented letters. The name cannot start or end with an underscore, and two underscores in a row (__) are not allowed. Maximum 120 characters. See Connector Structure › 1. Name for the full rule.
https://api.yourcompany.com
API Key (Recommended for simple APIs)
Type: API Key
Location: Header (Bearer)
Key: sk_live_abc123def456
OAuth 2.0 client credentials
Requires client credentials already issued by your API
Meta executes the calls to your API
Click "Add Tool" for each endpoint the agent can use. The tool name follows the same rule as the connector name: only letters, numbers and underscores.
Example:
Tool 1: get_order_status
Method: GET
Path: /orders/{order_id}
Parameters:
- order_id (string, required)
Tool 2: get_product_stock
Method: GET
Path: /products/{sku}/stock
Parameters:
- sku (string, required)
Each tool has a Run action in the connector list. Click it to execute the call:
GET /orders/123
Response: {
"order_id": "123",
"status": "shipped",
"tracking": "TR123456789"
}
The Connector appears in the list. Now Skills can use it.
Once the Connector is configured, Skills can access it:
Name: "check-order-status"
When to use it:
"When customer asks about their order status or tracking"
What the agent should do:
"1. Ask for the order ID if not provided
2. Call the Connector: GET /orders/{order_id}
3. Respond with status and tracking number
4. If shipped, mention estimated delivery date"
Meta Business Agent automatically:
| Method | What It Does | Example |
|---|---|---|
| GET | Read data | GET /orders/123 → get status |
| POST | Create new data | POST /tickets → create ticket |
| PUT | Update existing data | PUT /customers/123 → update profile |
| DELETE | Delete data | DELETE /bookings/456 → cancel appointment |
API Base:
https://your-store.myshopify.com/admin/api/2023-04
Authentication:
API Key in header:
X-Shopify-Access-Token: your_access_token
Tools:
1. GET /products/{id}.json
→ Get product details
2. GET /orders/{id}.json
→ Get order status
3. POST /fulfillments/{order_id}.json
→ Update shipping statusYour API may have limits (e.g., 100 calls/minute). Monitor:
API calls take time. If your API takes >5 seconds:
Never share credentials in chat or documents:
The agent might expose data that shouldn't be public:
Bad: "Your balance is $5,000 and your SSN is 123-45-6789"
Good: "Your balance is $5,000. Need changes? Contact support?"
| Problem | Cause | Solution |
|---|---|---|
| "Connector doesn't respond" | Your API is down | Verify your server is online |
| "Error 401 Unauthorized" | API Key / Auth incorrect | Verify credentials in WOZTELL |
| "Timeout (>5 seconds)" | Your API is slow | Optimize queries or use cache |
| "Response malformed" | API returns wrong format | Verify it returns valid JSON |
| "The request is not valid for this connector" (error 333) | The connector name contains spaces, hyphens or other unsupported characters | Rename it using only letters, numbers and underscores |