Response Path for Gmail integration

(Alex Wong) #1

Hey guys, I just tried this awesome platform last night.

I’d like to build a simple bot which sends the message “You have a new message” whenever there’s a new email.

I am not sure what to put into the Response Path field. I tried “{{gmail_new_email.subject}}” and other items but it just didn’t work :frowning:

Thank you in advance!!!

(Kellsey Shaw) #2

Hi there,

The response path is the unique identifier for the message channel of the person you are trying to send the Bot message to. You can obtain this from a message that has been sent to the Bot.

If you are planning to share your bot with multiple people, you’ll probably want to consider using a Flow that allows users to opt-in/register for the Bot service. This would be a Flow that uses the Bot Trigger and it would record the users Response Path. Perhaps you’d want to use our Attributes service for this.

Alternatively, if you set up a Flow temporarily with a Bot Trigger and trigger the bot from the chat platform that you are using. You’ll then be able to get the response path from the logs of that Flow.

Once you have the response path, you can then use this in your Flow that has the Gmail New Email trigger.