英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论