Skip to main content
Connic

Twilio Messaging

By Connic

Connect your agent to SMS/MMS, WhatsApp, and RCS. Answer customer messages, work with attachments, and send notifications through your Twilio account.

InboundOutbound

Overview

Make your Connic agent available through the messaging channels your customers use. An inbound Twilio Messaging connector receives messages sent to your Twilio number, WhatsApp sender, or RCS sender and starts the linked agent with the text, sender details, and supported attachments. The agent can consult your knowledge sources and use the tools you give it to answer questions or complete a task.

Add an outbound connector to send the response back to the customer. You can also send notifications from agents triggered by schedules, webhooks, or other connectors. Twilio Voice and Messaging reuse the same saved Twilio account connection; each Messaging connector has its own direction, channel, and sender. Conversation history uses Connic's existing sessions when you enable them for the agent.

How it works

  1. Connect your Twilio account

    Reuse a saved Twilio connection or save your Account SID, region, and regional Auth Token. The same connection can serve Voice and Messaging connectors where the selected region supports both.

  2. Choose a channel and sender

    Select SMS/MMS, WhatsApp, or RCS, then choose a sender from your connected account. The dropdown shows messaging-capable phone numbers or the selected channel’s senders, with capabilities or status. Refresh it after changes in Twilio.

  3. Receive messages with an inbound connector

    Create the inbound connector. Connic configures the sender's incoming-message webhook in Twilio automatically; the WhatsApp Sandbox requires a manual step. Link a deployed agent and configure its prompt, knowledge sources, and tools for the messages it will receive.

  4. Configure replies or outbound notifications

    Link an outbound connector to send after an agent run, expose it as an agent tool, or call it from middleware. For replies, use the same connection, channel, and sender as the inbound connector. For notifications, set a default recipient or pass one with each message.

Production patterns

Patterns teams ship in production, with Connic running the queues, workers, and schedulers.

Trigger

A customer sends a question and a product photo

WhatsApp message
Agent Action

Give the agent access to your product documentation and an image-capable model. It can use the message and photo to explain the next step, then reply through the linked outbound connector.

One Twilio connection for Voice and Messaging

Save account credentials once and select that connection when creating another Twilio connector. Credentials belong to the saved connection; the sender and message settings belong to each connector. Use different numbers and channels from the same account without maintaining separate copies of its Auth Token. See Twilio Voice for connecting an agent to incoming calls.

Choose the region that matches your Twilio setup. US1 supports SMS/MMS, WhatsApp, and RCS. IE1 supports SMS text, with no media or +1 senders or recipients. AU1 supports Voice only. Provision phone numbers and channel senders in Twilio. RCS drafts remain selectable for testing; appearing in the dropdown does not mean a sender is approved for production messaging. Twilio documents the IE1 restrictions for regional messaging.

Automatic webhook setup for your sender

Select a Twilio number or registered WhatsApp or RCS sender and save the inbound connector. Connic registers its incoming-message webhook in Twilio. It updates the webhook when you change senders and removes it when you delete the connector, provided the webhook still points to that connector. Setup errors appear when saving.

Clear an existing incoming-message webhook or TwiML app before assigning the sender to Connic. If a Messaging Service contains the sender, set its incoming handling to Defer to sender's webhook. For the WhatsApp Sandbox, copy the connector's webhook URL into When a Message Comes in in Twilio's Sandbox settings and save it with HTTP POST. The Sandbox requires this manual step.

Incoming messages become agent input

Connic verifies Twilio's request signature and checks that the account, channel, and destination match the inbound connector. Each accepted message supplies text, sender and recipient addresses, the Twilio message identifier, a conversation identifier, and the original webhook fields. Supported media is downloaded and passed to the agent as file input.

Set the prompt and attach the knowledge sources or tools the agent needs. A support agent can look up a product guide; an order assistant can call a tool connected to your order system. The Messaging documentation includes the input fields, webhook setup, and examples for each direction.

Reply to a customer or choose a recipient

Link inbound and outbound connectors to the same agent using the same Twilio connection, channel, and sender. Leave the outbound recipient empty to reply to the verified incoming sender. Connic checks the originating connector before using that reply destination.

For other destinations, return a recipient with the outbound message or set a default on the connector. An explicit recipient takes priority over the default, and the default takes priority over the incoming sender. Send a plain text string or use structured output for the recipient, media URLs, or template variables. Delivery can run automatically after the agent, through an agent tool, or from middleware.

Keep conversation history with Connic sessions

Enable sessions on the agent and set the session key to input.conversation_id when follow-up messages need earlier context. Choose a session lifetime that fits the conversation. Without session configuration, messages start independent runs and do not automatically share history.

The conversation identifier groups a customer's messages to the same Twilio sender on that inbound connector. It separates accounts, regions, and channels, so sharing a saved connection with Voice or another Messaging connector does not merge their conversation histories.

Work with media and approved WhatsApp templates

Incoming attachments use Connic's file-input format, with a combined limit of 10 MiB per message. Choose a model that can process the supplied file types. Outbound messages accept public media URLs that Twilio can fetch: up to ten for SMS/MMS and one for WhatsApp or RCS, subject to the channel's media rules. On WhatsApp, send explanatory text separately from non-image media because those attachments do not retain an accompanying text body.

For WhatsApp messages outside the 24-hour customer service window, use an approved template. Configure its Content SID and variables on the connector or pass them with the outbound message. Templates use their own content; send plain text and media URLs through separate message actions. RCS uses the configured RCS sender and recipient; this connector does not automatically fall back to SMS.

Inspect runs and check delivery in Twilio

Use Connic runs to inspect the incoming message, the agent's tool calls, and its output. Outbound connector results include Twilio's message SID and the status returned by the API, so you can find the corresponding message in Twilio's Messaging Logs.

A successful outbound run means Twilio accepted the API request. Check the Messaging Logs for the final delivery status and any channel or carrier errors. The connector documentation covers common setup, recipient, template, and attachment problems.

Information

Publisher
By Connic
Connectors
Connectors
Modes
Inbound, Outbound

Frequently Asked Questions

Yes. Voice and Messaging select the same saved Twilio connection, including its Account SID, region, and Auth Token. Each connector keeps its own sender and settings. The connection's region must support the chosen channel; AU1 supports Voice only.

Yes. Use an outbound connector with an agent triggered by a schedule, webhook, or another source. Set a default recipient or include one in the message. WhatsApp requires an approved template outside the 24-hour customer service window, and Twilio's channel requirements still apply.

Enable Connic sessions on the agent with input.conversation_id as the session key and choose a session lifetime. Messages from the same customer to the same sender on that inbound connector then use the same session while it remains active. History is not enabled automatically.

Yes. Activate the Sandbox in Twilio and join it from the test recipient's WhatsApp account. Select WhatsApp and the WhatsApp Sandbox option in Connic, then register the inbound connector's webhook URL in the Sandbox using HTTP POST. For production, use an approved WhatsApp sender in Twilio.

Manage phone numbers, WhatsApp and RCS sender registration, and template approval in Twilio. Connic uses those existing senders and approved Content SIDs to connect messages to your agents. It configures incoming-message webhooks automatically, except for the WhatsApp Sandbox, which requires manual setup.

A successful outbound connector run means Twilio accepted the send request. The result includes the Twilio message SID and API status. Use that SID in Twilio's Messaging Logs to check final delivery or investigate a channel or carrier error.
Need Twilio Messaging in a production agent flow?

Bring the event source, payload shape, result destination, and any private-network or approval requirements. We will map Twilio Messaging to the right Connic connector mode, deployment path, and observability setup.

Talk to Sales