Its need to add to the dialogflow bot [login to view URL] file code 3 new functions, using Inline Editor:
1. Send request to API to get the user points data and send that response to the chat.
2. Send request to API to register new buy to get points to the user and send that response to the chat.
3. Send request to API to register new buy to spend user points and send that response to the chat.
+ we need to add to bot the authorization intent - to make user authorize by his google account and to get user email as parameter.
The JS code example to make API request is here:
[login to view URL]
13 freelancers are bidding on average $29 for this job