Skip to main content

Toggle AI Response

Enable or disable AI auto-responses for an existing campaign. When disabled, the starting message is still sent to contacts, but the AI will not reply when they respond. This is useful for broadcast-only campaigns where a human handles replies.

Endpoint

POST /v1/campaigns/{campaign_id}/toggle-ai

Authentication

X-API-Key
string
required
Your API key

Path Parameters

campaign_id
string
required
The campaign ID

Request Body

disable_ai_response
boolean
required
Set to true to disable AI responses, false to re-enable them

Response

success
boolean
Whether the operation was successful
message
string
Human-readable result message
campaign_id
string
The campaign ID
disable_ai_response
boolean
The current state of AI responses (true = disabled, false = enabled)

Example Request

curl -X POST "https://partner.teli.ai/api/proxy/v1/campaigns/camp_abc123/toggle-ai" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"disable_ai_response": true}'

Example Response

{
  "success": true,
  "message": "AI responses disabled for campaign camp_abc123",
  "campaign_id": "camp_abc123",
  "disable_ai_response": true,
  "powered_by": "Teli"
}

Behavior When AI is Disabled

  • The starting message is still sent to each contact when the campaign launches
  • When a contact replies, the AI does not generate a response
  • The reply is still saved to conversation history and visible in the dashboard
  • The contact is marked as responded (drip messages stop)
  • A human can send manual replies via the Send SMS or Bulk Send SMS endpoints

Campaign Creation

You can also set disable_ai_response when creating a campaign:
{
  "campaign_id": "camp_abc123",
  "sms_agent_id": "agent_xyz",
  "disable_ai_response": true,
  ...
}