integrating with gmail using service node


(Ritika Singh) #1

Hi ,
I want to send a mail from the chat bot after all the data has been collected from the end user , but I am not able to do it using the gmail api , it is asking for lot of authentications and I am not able to hit gmail . can you please help me how to set this up to send a mail with all users enterd details to a particular gmail id from chatbot.


Send email from chatbot
(Subrahmanyam Donepudi) #2

The platform doesn’t offer any public API to send email. You would need to create a service or get the service from any third party provider.

Most services offered by third parties would need an auth mechanism to access their resources.

I had a look at Gmail API documentation and I see that both Oauth2.0 and API key are supported for their send API. Please refer to their documentation at below link and have the service configured at a service node on the bot builder.

https://developers.google.com/gmail/api/v1/reference/users/messages/send


How can we send bulk mails from service node
(Subrahmanyam Donepudi) #3

@m.satish512 Could you please assist @ritikasingh here?


(Ritika Singh) #4

I am not able to find any solution for integrating with gmail and kore.ai. the document shared is okay but still I m not able to do it. please any one can help me with any sample.


(Subrahmanyam Donepudi) #5

@ritikasingh Please refer to the below configuration which might provide an insight in building your use case. In this example I have used the sendgrid api for emailing the contact details.

image

image

Details on sendGrip account which talks about using their emailAPI (Auth, URL, Method and payload )

image

Screenshots of run time execution of the dialog ‘Contact Us’ which sends a email to the recipient as configured at the service node ‘sendGridAPI’

image

image


Send email from chatbot
(Ritika Singh) #6

emailerror1 emailerror2

Internally it is working fine from test part of the service node but from chat to bot part it is discarding the task. Please Help.


(Subrahmanyam Donepudi) #7

Please provide the details of your dialog configuration. Do provide the screenshots of transition rules at each node (to and from sendGridmail service node in particular) and the response you have received when the API is called during the dialog execution.

You could even send over the bot/ dialog export to support@kore.com, our support team will have the issue debugged.


(nisa) #8

this works fine in cmd and i get mail too but when I try to make a post call through service it gives unauthorized.Error 401.

The above issue is solved now .