如何从 Studio 中的聊天流发送短信

发布于 2025-01-13 06:15:06 字数 511 浏览 4 评论 0原文

我有一个工作室流程,可以接收聊天消息(来自 Whatsapp)并将对话转发到 Flex。
发生这种情况时,我正在尝试向硬编码号码发送短信通知。

问题是短信从未发送,并且发送消息小部件失败并显示以下日志:
发送消息失败:聊天服务或通道参数丢失

我了解这可能是因为流程具有聊天上下文并且小部件需要聊天服务。但我想发短信。

我尝试像这样配置“发送消息”小部件:

  • SEND MESSAGE FROMSEND MESSAGE TO 设置,所有其他配置字段为空
  • SEND MESSAGE FROM 和使用消息服务 ID 的 SEND MESSAGE TOPROGRAMMABLE CHAT SERVICE (这实际上没有意义,但是嘿......)

都不起作用。

如何从 Studio 中的聊天流程发送短信?

I have a studio flow that receives chat messages (from Whatsapp) and forward the conversation to Flex.
I'm trying to send a SMS notification to a hard-coded number as this happen.

The issue is that the SMS is never sent and the Send Message widget fails with the following log:
Failure sending message: Chat service or channel parameter missing

I understand that it's probably because the flow has a Chat context and that the widget expects a Chat Service. But I want to send a SMS.

I tried to configure the Send Message widget like this:

  • SEND MESSAGE FROM and SEND MESSAGE TO set and all other config fields empty
  • SEND MESSAGE FROM and SEND MESSAGE TO and PROGRAMMABLE CHAT SERVICE with a Messaging Service ID (which doesn't really make sense but hey...)

Neither worked.

How can I send a SMS from a Chat flow in Studio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心如狂蝶 2025-01-20 06:15:06

我刚刚能够构建一个快速的 Studio Flow,它可以接收来自 WhatsApp 的消息并向硬编码号码发送短信,它对我很有用。我的方法是对消息发送和发送消息中的发送消息发送消息至号码进行硬编码。 发送消息小部件的聊天配置部分,如下所示:

< img src="https://i.sstatic.net/YlPrh.png" alt="在此处输入图像描述">

在这种情况下,您必须确保发送消息号码是一个 Twilio 数能够发送短信。

I was just able to knock up a quick Studio Flow that receives messages from WhatsApp and sends out an SMS to a hard-coded number and it worked for me. The way I did it was to hard code both the Send message from and Send message to numbers in the Messaging & chat config section of the Send Message widget, like this:

enter image description here

In this case you must ensure that the Send message from number is a Twilio number that is able to send SMS messages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文