如何在Twilio Flex中显示完整的消息历史记录,当发送或接收短信时?

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

How to display the entire message history in Twilio Flex when an incoming or outgoing sms is sent?

问题

当我发送一条收到或发送的短信请求时,会创建一个新的对话,相应地,消息块为空,但我需要加载来自这个号码的以前的消息。也许可以通过插件来实现?我现在卡住了。

英文:

When I send an incoming or outgoing sms request, a new conversation is created and, accordingly, the message block is empty, but I need previous messages from this number to be loaded there. Maybe it can be done somehow through a plugin?

I'm just stuck right now.

答案1

得分: 0

如果您正在使用Conversations,您可以使用'parked interactions',这样基本上会将对话“暂停”而不是结束,并在恢复对话时显示其历史记录。

这里有一些相关文档:https://www.twilio.com/docs/flex/developer/conversations/park-an-interaction

还有一个插件可供使用:https://github.com/TwilioLatamEngHub/plugin-conversations-park-an-interaction

英文:

If you're using Conversations, you can use 'parked interactions' so that essentially a conversation is 'paused' rather than ended, and its history is shown when the conversation is resumed.

Here's some docs about it: https://www.twilio.com/docs/flex/developer/conversations/park-an-interaction

There's a plugin you can use to do this: https://github.com/TwilioLatamEngHub/plugin-conversations-park-an-interaction

huangapple
  • 本文由 发表于 2023年6月9日 08:11:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76436425.html
匿名

发表评论

匿名网友

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

确定