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]
12 фрилансеров(-а) в среднем готовы выполнить эту работу за $30