メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Voice

Configuring a Phone Number with Autopilot

To configure your Autopilot Assistant for Twilio Programmable Voice follow the following steps:

  1. Go to your Console Phone Numbers page.
  2. Buy or select the phone number you want to use for your Assistant.
  3. In Voice & Fax Configuration select Webhook.
  4. Fill in the URL in the following format:
  5. https://channels.autopilot.twilio.com/v1/<ACCOUNT_SID>/<ASSISTANT_SID>/twilio-voice
    
  6. Click Save Settings.
  7. Make a call to that phone number - you should get an Assistant Responder webhook.

<Autopilot> TwiML noun

To configure your Autopilot Assistant for Twilio Programmable Voice follow the following steps:

Example 1: Connect call to Autopilot

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Connect action="https://www.example.com/autopilot">
    <Autopilot>UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Autopilot>
  </Connect>
</Response>

Example 2: Connect call to Autopilot to a specific task

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Connect action="https://www.example.com/autopilot">
    <Autopilot TargetTask="voice_welcome">UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Autopilot>
  </Connect>
</Response>

Autopilot Parameters

パラメーター 概要
TargetTask

A string representing the unique name of the destination Task. If no TargetTask is provided, the destination task is determined by the natural language understanding.


TargetTask is useful when you want to control what task a user is routed to.

Any call sent with a TargetTask parameter will start the Autopilot session on that task. This will override the initiation task speccified in the defaults.

Rate this page:

ヘルプが必要ですか?

誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。