簡體   English   中英

如何從 Rasa<->Google 聊天集成后發送到 Rasa 服務器的環聊消息中獲取用戶電子郵件 ID

[英]How to get User- email Id from hangout messages that are being sent to Rasa server after Rasa<->Google chat integration

我已經集成了 Rasa 和谷歌聊天,並且能夠在谷歌聊天中收到回復。 我正在嘗試獲取我從谷歌聊天收到的每個請求的用戶電子郵件 ID。 我不確定如何從 google chat API 中提到的響應中獲取用戶對象。 如果你能幫助我,那將會很有幫助。

非常感謝

環聊頻道有一個名為_extract_sender的方法,請參閱https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/hangouts.py#L209

如果這沒有獲取您需要的 ID,您可以向從請求 JSON 中提取電子郵件 ID 的通道添加類似的方法

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM