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

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

Connecting Power Virtual Agent Chatbot to Twilio SMS via Azure Bot

问题

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

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

我还将这个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.html
匿名

发表评论

匿名网友

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

确定