Skip to main content
TurnCall supports text-based conversations via Twilio SMS and the Chat API. Agents use the same LLM configuration as voice but respond with text.

SMS Flow

Enable SMS on a Phone Number

Set sms_enabled: true when binding a phone number. TurnCall auto-configures the Twilio SMS webhook. The same number handles both voice calls and SMS.

Chat API

Use the Chat API for programmatic text conversations:

Endpoints

Context Threading

Use session_id (group messages) or previous_chat_id (linear chain) to maintain conversation context. Cannot use both.

Session Management

  • Auto-created on first inbound SMS or Chat API call
  • Resumed if same (customer_number, turncall_number) pair and <24h since last activity
  • Expired after 24h inactivity (lazy on lookup + background cleanup every 15 min)

Webhook Events

  • session.created
  • session.updated
  • session.deleted
  • chat.created