how to take mail id of user using the google assistant chatbot - dialogflow-es

I am new to build chat-bots. Here I have made a chat-bot using dialog flow and integrated with google assistant. Is their any way that we can get the mail id of the user interacting with the chat-bot so that we can send mail to their respective id.

Only with the user's permission to give it to you. You can request that they sign in using Google Sign In for Assistant. When they do so, their profile information is available. If their email address is part of their profile, it will be included.

Related

Is it possible to get the Email address of a user using the Chatbot in Dialogflow?

For my Dialogflow chatbot I need to identify the users using the chatbot. So is it possible to fetch their Email addresses. I am using Hangout for integration.
Entities are pieces of information that Dialogflow captures from a user message. This is what I'd recommend using to get the email address from one of your users.
In your dialogflow console, you simply need to set up the appropriate user intent (maybe "provide email address"). Inside that intent you can create an action that captures an email address entity.
Dialogflow includes default settings to capture pieces of information like email addresses, doing much of the work for you.
https://cloud.google.com/dialogflow/es/docs/entities-overview
The bot can access some user data which includes the email address.
So the answer to your question is yes.
See https://developers.google.com/hangouts/chat/concepts/bots#bot_access_to_user_data

Automatic Email Send in Microsoft Bot Framework Composer

I am developing chatbot using Microsoft bot framework composer. I added this chatbot to Microsoft Teams channel as well. It is a IT Help desk chatbot. We have a separate ticketing system, whenever user send a email to support#abc.com, the support ticket would be automatically created.
I want my chatbot to send a email automatically to create a ticket when the user needs to create a ticket using chatbot.
There are a lot of ways to do that. For example, you can use "Send an HTTP request" action in the composer, and call an endpoint where you do this email processing (for example: you can quickly test by using a logic app which will be your http endpoint, and inside this logic app use an email connector - outlook or other)
More details on the "send an http request" step here
And a tutorial to send an email with Logic Apps here

Enable another user to set gmail filter for my email

I am looking to set up an email forwarding system. I have successfully used the Gmail API to read and edit emails from my ADMIN account (the admin account is a gmail account that I created and has oauth2 credentials from the Gmail API as described in the Quickstart guide).
I would now like to enable USERS of my web application to click a button that will programmatically create an Gmail filter for the USER email that will forward specific messages to the ADMIN email. I am using the Python API.
I am trying to use the filter API, but am getting a "Delegation denied for ADMIN_EMAIL.
How do I approach this?
Thanks!

Is there a way to push notification via a chatbot deployed in facebook developed with dialogflow w/ node.js for fulfillment

I'm developing a facebook/workplace chatbot using dialogflow with node.js for fulfillment. Can't seem to find resources for pushing notifications.
I want to be able to trigger sending the message by visiting the webhook url.
You need to use the Facebook Graph APIs to send a facebook notification to a specific user. User can click on the notification to launch the facebook messenger chatbot.
Here is a quick example.
https://graph.facebook.com/v3.0/{user_id}/notifications?template={your_message}&href={link}&access_token={page_access_token}
You can read more about it here: https://developers.facebook.com/docs/graph-api/reference/user/notifications/
Basically, you need to run a web service which when called makes the calls to the facebook notification APIs.
All you need to do is pass the user id, the message/link to be displayed in the notification and the page access token.
When someone first sends you a message via Facebook, Facebook provides you the page-specific user id which you can store in the database.
Page access token can be accessed by going to https://developers.facebook.com/apps

How can i fetch logged in users email id in dialogflow?

How can I get logged in users email id in dialogflow and send it to webhook.
I am integrating it with google assistant.
You can get user's email by asking them to link their google account with your agent.
https://developers.google.com/actions/identity/google-sign-in

Resources