将Power Virtual Agent Chatbot连接到Twilio SMS通过Azure Bot

huangapple go评论80阅读模式
英文:

Connecting Power Virtual Agent Chatbot to Twilio SMS via Azure Bot

问题

我正在使用Power Virtual Agent (PVA)聊天机器人,我使用PVA UI设置了它,没有任何代码。我的目标是允许用户通过Twilio短信与此机器人互动,也就是说,他们向机器人发送一条文本消息,机器人在同一会话中回复,并且可以进行上下文对话,因为某些QnA流程中涉及深层次的问题。

使用Twilio的DirectLine令牌:我注意到有一种方法可以使用DirectLine令牌集成Twilio。我怀疑这需要以编程方式设置机器人(例如,使用Node.js)。我想知道是否有一种无代码的方法来实现这一点?

我还将这个PVA机器人连接到了Azure Bot和Azure Insights集成:我将PVA聊天机器人连接到了Azure Bot,并设置了Azure Insights以进行度量。在Azure Bot中,有一个"渠道"部分,我在那里看到了连接到Twilio等平台的选项。我已成功将Twilio连接为一个渠道,并尝试给机器人发送消息,但似乎它没有通过消息端点与我的PVA机器人连接起来。我还尝试了在Twilio的端口("当收到消息时")上使用了几个Webhook URL。

我希望有人已经将他们的PVA机器人连接到了Twilio短信,无论是通过Azure Bot还是其他方式。

英文:

I am working with a Power Virtual Agent (PVA) chatbot which I've set up using the PVA UI without any code. My goal is to allow users to interact with this bot via Twilio SMS, i.e., they send a text to the bot, and the bot responds in the same session and can have a contextual conversation because their are deep seeded questions involved in some QnA flows.

DirectLine Token with Twilio: I noticed that there's a way to integrate Twilio using a DirectLine token. I suspect this requires setting up the bot programmatically (e.g., with nodejs). I'd like to see if there's a no-code way to achieve this?

I've also connected this PVA bot to Azure Bot and Azure Insights Integration: I've connected the PVA chatbot to an Azure Bot and have set it up with Azure Insights for metrics. Within the Azure Bot, there's a 'Channels' section where I see an option to connect to platforms like Twilio. I've successfully connected Twilio as a channel and I've attempted messaging the bot but it seems it's not linking up with my PVA bot via message endpoints. I've also tried several webhook url's on Twilio's end as well ('When a message comes in').

My hope is that someone has connected their PVA bot to Twilio SMS whether that involves Azure Bot or another means.

答案1

得分: 1

你是否按照连接PVA机器人到Azure Bot Service实例的这些步骤进行操作,将Power Virtual Agents机器人添加到Azure Bot Service渠道

我不会重述文档中列出的所有步骤。简而言之,您需要从PVA机器人的设置/渠道中获取Twilio渠道的令牌终结点。从这个终结点生成的令牌用于通过DirectLine连接您的PVA机器人到关联的ABS Twilio渠道。此外,还需要包括必要的代码来管理各种客户端连接和对话。

此外,请确保您已经在PVA中发布了您的机器人。 😊

英文:

Did you follow these steps for connecting a PVA bot to an Azure Bot Service instance, Add Power Virtual Agents bot to Azure Bot Service channels?

I won't rehash all the steps listed in the doc. In short, you need to get the token endpoint from the Twilio Channel in your PVA bot's Settings/Channels blade. The token generated from this endpoint is used for connecting your PVA bot via DirectLine to this associated ABS Twilio channel. Additionally, there is necessary code that needs to be included for managing the various client connections and conversations.

Also, be sure you have published your bot in PVA. 😉

huangapple
  • 本文由 发表于 2023年8月9日 11:36:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76864407-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定