我们是一家送货服务公司。下订单后,我们希望向我们的司机发出送货工作邀请。这些职位是先到先得。
订单在我们的 NodeJS 服务器上处理。在使用 Twilio Autopilot 处理对话(询问工作详细信息)的同时,向每位司机发送短信 (SMS) 的有效方式是什么?
我似乎找不到指示 Autopilot 启动指定出站电话号码的对话的方法。我用过twilio.messages.create()
使用与 Autopilot 相同的号码向驾驶员发送短信(包含工作机会)。但当司机回复时,自动驾驶仪没有原始问题的背景信息。
这里是 Twilio 开发者布道者。
You can initiate a session with Twilio Studio! You can message the user without the user greeting the bot by connecting the trigger widget's Rest API
trigger event to either a make outgoing call
or send message
widget, as shown below.
Then, if the call is answered or the message is sent, you can connect those actions to the Send to Autopilot widget.
Lastly, under the config section of your Send to Autopilot widget, put in the Collection task you want to run when the outbound call or message is initiated by your Twilio client and not the user.
或者,您不需要 Twilio Studio:您也可以使用 REST APIhttps://www.twilio.com/docs/autopilot/api https://www.twilio.com/docs/autopilot/api开始对话。
让我知道这是否有帮助:D
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)