Google
Get Google Access Token
Gets the access token the Google Calendar and Sheets tools need. The bot calls this first.
Unverified
What the model is told
Get an access token for Google. Call this once before any other Google tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. If a Google tool returns a 401, call this again to get a fresh token.
Request
POSThttps://oauth2.googleapis.com/token
Headers
Content-Typeapplication/x-www-form-urlencoded
Body
grant_type=refresh_token&client_id=YOUR_GOOGLE_CLIENT_ID&client_secret=YOUR_GOOGLE_CLIENT_SECRET&refresh_token=YOUR_GOOGLE_REFRESH_TOKENParameters
None.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "53eadc3b-e746-4345-b2f8-a8eac6d30a36",
"type": "HTTP_REQUEST",
"label": "Get Google Access Token",
"name": "get_google_access_token",
"customName": false,
"description": "Get an access token for Google. Call this once before any other Google tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. If a Google tool returns a 401, call this again to get a fresh token.",
"parameters": [],
"config": {
"endpoint": {
"method": "POST",
"url": "https://oauth2.googleapis.com/token"
},
"headers": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": "grant_type=refresh_token&client_id=YOUR_GOOGLE_CLIENT_ID&client_secret=YOUR_GOOGLE_CLIENT_SECRET&refresh_token=YOUR_GOOGLE_REFRESH_TOKEN",
"timeout": null
}
}
}IDs are regenerated on every copy.