简体   繁体   English

从Dialogflow会话获取Twitter用户句柄

[英]Getting the Twitter user handle from a Dialogflow session

I am using the Twitter integration option with Dialogflow, and wondered if there is a way of getting the Twitter user handle/user Id from the Dialogflow session? 我在Dialogflow中使用Twitter集成选项,并且想知道是否有办法从Dialogflow会话中获取Twitter用户句柄/用户ID?

I cant see anything in the JSON messages that Dialogflow generates, so I am guessing not, but it's worth asking :) 我看不到Dialogflow生成的JSON消息中的任何内容,所以我猜没有,但是值得一问:)

Your webhook will be passed information about the sender in the originalRequest field. 您的webhook将在originalRequest字段中传递有关发件人的信息。

In the case of a direct message, you can find their handle under originalRequest.data.direct_message.sender.screen_name . 如果是直接消息,则可以在originalRequest.data.direct_message.sender.screen_name下找到它们的句柄。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM