Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

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?

TwiML™ Voice: <Autopilot>

With Autopilot, you can build AI-powered conversational IVRs that recognizes user's intent, collects data from users, answers frequently (or infrequently) asked questions, and routes calls to other users.

Autopilot does the speech recognition and natural language understanding (NLU) to detect what users say and match it to Tasks that they need to acomplish. Tasks can be programmed to ask questions to collect data, answer questions or connect calls to other users. They are trained to recognize different phrases or ways users might invoke a given Task.

Learn more about Autopilot here or create your first Autopilot Assistant in the console.

You can use TwiML's <Autopilot> noun to connect a call to an Autopilot Conversational IVR.

The following example shows how to use the <Autopilot> TwiML noun:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Connect>
    <Autopilot>UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Autopilot>
  </Connect>
</Response>
        
        
        
        
        Toggle to your preferred programming language, or view the raw TwiML to see how the libraries and TwiML syntax differ

        Connect to <Autopilot>

        Toggle to your preferred programming language, or view the raw TwiML to see how the libraries and TwiML syntax differ

        <Connect> Attributes

        <Autopilot> supports the following attributes that change its behavior:

        Attribute name 許容値 初期値
        action URL (relative or absolute) 現在の文書の URL
        method GET または POST POST

        action

        The action attribute takes an absolute or relative URL as a value. The Autopilot dialogue ends either by doing a handoff or the absence of a listen.

        If you do not provide an action parameter, Twilio will POST to the URL that houses the active TwiML document.

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

        Without an action URL, Twilio will re-request the URL that hosts the TwiML you just executed. This can lead to unwanted looping behavior if you're not careful. See our example below for more information.

        Rate this page:

        ヘルプが必要ですか?

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