Twilio Chat 与 属性 列表网站的集成

Twilio Chat Integration with the property listing website

我们的团队正试图找到一种方法将 Twilio 的可编程聊天集成到我们的网站(一个房地产列表网站)。

用例:

方法:

第一种方法的问题:

第二种方法的问题:

请发表评论以获取更多信息,并提前感谢您的帮助。

这里是 Twilio 开发人员布道者。

Is there any other better approach that my team can consider to decrease the number of channel creations.

如果您要让用户彼此交谈 1:1,那么每次对话都需要一个频道,没有什么可以解决的。

我建议在对话结束后或一段时间不活动后关闭频道,以降低您的总数,并且您可以将对话存档在您自己的数据库中作为其中的一部分。如果他们再次开始交谈,您可以随时开始新频道。

How do we show the invitation dialogue box to the invited user?

这完全取决于您的申请,如果您没有提供更多详细信息,我不知道该如何回答。我建议只构建并尝试一些东西,以了解在你的应用程序中什么会很好地工作。

Twilio Chat 确实提供了 push notifications to users about new invitations,您可能想要使用它。

How to we show different names on the both user side. For example on Tenant side we will show landlord name and on landlord side we will show Tenant name in case of T-L 1:1 chat.

每个聊天参与者都必须设置一个身份。如果该身份是可读的,则可以将其用作显示。或者,您可以设置一个 arbitrary JSON object as the attributes property,您可以在其中设置实际的用户名。最后,您可以使用标识符从您自己的 API.

中查找用户名

希望对您有所帮助!