In this guide, we’ll walk you through deploying an AI SMS Agent to handle inbound and outbound SMS conversations. The SMS Agent can be used to engage with customers either by responding to inbound SMS or sending outbound SMS messages.

1. Inbound SMS Agent

To deploy an SMS Agent that responds to inbound SMS messages: Step 1: Set up the Trigger for Inbound SMS Messages
In the agent flow, add the “When an SMS is received” trigger under Incoming Conversations. This trigger will activate the agent when an SMS is received on the assigned phone number. Step 2: Build and Test Your Agent Flow Design and customize the agent flow to handle customer queries, such as responding to questions or providing assistance. Test the agent flow to ensure that the agent responds as expected to incoming SMS messages. Step 3: Configure SMS Agent in Settings
Go to Settings > Phone Numbers to select the phone number where you want the SMS agent to respond to messages.
  • In the “Message Agent” field, select the agent flow you’ve created for handling inbound SMS.
  • Ensure that the correct phone number is mapped to this flow.
A single phone number can only have one agent flow mapped for inbound SMS, but an agent flow can be mapped to multiple numbers.

2. Outbound SMS Agent

To deploy an outbound SMS agent, follow these steps: Step 1: Configure the “Send Message” Node In your agent flow, add the “Send Message” node:
  • Choose SMS as the channel.
  • Set the From Number as a rented number or SID from your Plivo account.
  • Enter the To Number, which can be either a dynamic value or a fixed number.
Step 2: Triggering the Outbound SMS There are multiple ways to trigger the outbound SMS:
  • API Integration: Use the “Trigger an API Request” node to trigger the outbound SMS via an external API.
  • Agent Flow Branching: You can trigger the outbound SMS within your agent flow based on certain conditions or events.

Concluding Notes:

  • Inbound SMS: When a customer sends an SMS to your phone number, the agent flow associated with that number will be triggered automatically to respond to the incoming SMS.
  • Outbound SMS: Outbound SMS can be triggered by API calls or initiated directly within your agent flow using the “Send Message” node.
  • Agent Flow Flexibility: Your agent flow can be designed to dynamically respond based on conditions such as message received, or different scenarios like failed or successful message deliveries.