Skip to main content
Back to Actions Integrations Use prebuilt Twilio Verify action templates to auto-create dialog tasks for sending SMS and managing verification. To access templates:
  1. Go to Automation AI > Use Cases > Dialogs and click Create a Dialog Task.
  2. Under Integration, select Twilio Verify. Integration - Twilio Verify
  3. If no integration is configured, click Explore Integrations to set one up. See Actions Overview. Explore integrations

Supported Actions

TaskDescriptionMethod
Send SMSSends an SMS to the registered phone number.POST
Start VerificationStarts the verification of the phone number registered in Twilio.POST
Verification CheckChecks whether the verification is successful or unsuccessful.POST

Send SMS

  1. Install the template from Twilio Verify Action Templates.
  2. The Send SMS dialog task is added with the following components: Send SMS dialog task is added
    • sendSms – User intent to send SMS.
    • accountSid, twilioNumber, receiverNumber, message – Entity nodes for SMS details.
    • sendSmsService – Bot action service to send SMS. Click Edit Request: Send SMS - Edit request Sample Request:
      Body = {{message}}
      From = {{twilioNumber}}
      To = {{receiverNumber}}
      
      Click +Add Response: Send SMS - Add response Sample Response:
      {
        "body": "Sent from your Twilio trial account - Hi Kore",
        "num_segments": "1",
        "direction": "outbound-api",
        "from": "{{twilioNumber}}",
        "status": "queued",
        "account_sid": "AC6bae65f877f2488c902f57ce1fxxxxx"
      }
      
    • sendSmsMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt to Send SMS
    You must add the country code before the receiver’s phone number. For example, to send an SMS to a US number, add +1.

Start Verification

  1. Install the template from Twilio Verify Action Templates.
  2. The Start Verification dialog task is added with the following components: Start Verification dialog task is added
    • startVerification – User intent to start verification.
    • serviceSid, receiverNumber, channel – Entity nodes for verification details.
    • startVerificationService – Bot action service to start verification. Click Edit Request: Start Verification - Edit request Sample Request:
      To = {{receiverNumber}}
      Channel = {{channel}}
      
      Click +Add Response: Start Verification - Add response Sample Response:
      {
        "status": "pending",
        "account_sid": "AC6bae65f877f2488c902f57cexxxxx",
        "to": "+{{receiverNumber}}",
        "valid": false,
        "channel": "sms"
      }
      
    • startVerificationMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt to Start Verification

Verification Check

  1. Install the template from Twilio Verify Action Templates.
  2. The Verification Check dialog task is added with the following components: Verification Check dialog task is added
    • verificationCheck – User intent to check verification.
    • serviceSid, receiverNumber, code – Entity nodes for verification check details.
    • verificationCheckService – Bot action service to check verification. Click Edit Request: Verification Check - Edit request Sample Request:
      To = {{receiverNumber}}
      Code = {{code}}
      
      Click +Add Response: Verification Check - Add response Sample Response:
      {
        "status": "approved",
        "account_sid": "AC6bae65f877f2488c902f57xxxxx",
        "to": "{{receiverNumber}}",
        "valid": true,
        "channel": "sms"
      }
      
    • verificationCheckMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt - Enter phone number