メニュー

Expand
ページを評価:

Trigger (Start)

Studio Trigger Widget

説明:

すべてのFlowはTrigger Widgetを持っています。 これはFlowの開始となるWidgetです。 他のWidgetは着信通話、REST API、そして受信メッセージという3つの取りうるトリガーイベントの内ひとつに接続されます。 このWidgetは削除できません。

必須の構成:

Flow Name is required, and defaults to the name entered when you create the Flow. You may modify this at any time.

FlowのWebhook URL (読み取り専用) です。 下記の形式で構成パネルに表示されます:

https://webhooks.twilio.com/v1/Accounts/<account_sid>/Flows/<flow_sid>

クリップボードにFlowのURLをコピーして、これをTwilio電話番号に接続したり、REST APIリクエストを送信したりできます。

Transitions: Trigger Widgetに接続される3つの初期イベントがあります。 着信通話、受信メッセージ、およびREST API(受信リクエスト)の3つです。 Trigger WidgetではカスタムTransitionイベントは認められていません。

変数:

Inbound Message(受信メッセージ) Trigger

Account SID trigger.message.AccountSid
Body trigger.message.Body
From trigger.message.From
FromCity trigger.message.FromCity
FromCountry trigger.message.FromCountry
FromState trigger.message.FromState
FromZip trigger.message.FromZip
Message SID trigger.message.MessageSid
Messaging Service SID trigger.message.MessagingServiceSid
Number of Media Items trigger.message.NumMedia
To trigger.message.To
ToCity trigger.message.ToCity
ToCountry trigger.message.ToCountry
ToState trigger.message.ToState
ToZip trigger.message.ToZip

Inbound Call(着信通話) Trigger

Account SID trigger.call.AccountSid
ApiVersion trigger.call.ApiVersion
Called trigger.call.Called
caller trigger.call.Caller
CallStatus trigger.call.CallStatus
Direction trigger.call.Direction
From trigger.call.From
FromCity trigger.call.FromCity
FromCountry trigger.call.FromCountry
FromState trigger.call.FromState
FromZip trigger.call.FromZip
Caller City trigger.call.CallerCity
Caller Country trigger.call.CallerCountry
Caller State trigger.call.CallerState
Caller ZIP trigger.call.CallerZip

Call SID

trigger.call.CallSid
Called City trigger.call.CalledCity
Called Country trigger.call.CalledCountry
Called State trigger.call.CalledState
Called ZIP trigger.call.CalledZip
To trigger.call.To
ToCity trigger.call.ToCity
ToCountry trigger.call.ToCountry
ToState trigger.call.ToState
ToZip trigger.call.ToZip

REST API Trigger

Variables passed in via REST API trigger will be available as Flow Data and accessible via {{flow.data.MY_CUSTOM_VARIABLE}} syntax. See the REST API page for more details.

ページを評価:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

        
        
        

        フィードバックくださりありがとうございます!

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

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        ステップ1

        Get link

        Get a free personal referral link here

        ステップ2:

        Give $10

        Your user signs up and upgrade using link

        ステップ3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more