Microsoft
Get Microsoft Graph Access Token
Gets the access token the Outlook tools need. The bot calls this first.
Unverified
What the model is told
Get an access token for Microsoft Graph. Call this once before any Outlook 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 an Outlook tool returns a 401, call this again to get a fresh token.
Request
POSThttps://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token
Headers
Content-Typeapplication/x-www-form-urlencoded
Body
grant_type=client_credentials&client_id=YOUR_AZURE_CLIENT_ID&client_secret=YOUR_AZURE_CLIENT_SECRET&scope=https%3A%2F%2Fgraph.microsoft.com%2F.defaultParameters
None.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "837627cc-2762-45ab-8f49-d35e25e483e5",
"type": "HTTP_REQUEST",
"label": "Get Microsoft Graph Access Token",
"name": "get_microsoft_graph_access_token",
"customName": false,
"description": "Get an access token for Microsoft Graph. Call this once before any Outlook 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 an Outlook tool returns a 401, call this again to get a fresh token.",
"parameters": [],
"config": {
"endpoint": {
"method": "POST",
"url": "https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token"
},
"headers": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": "grant_type=client_credentials&client_id=YOUR_AZURE_CLIENT_ID&client_secret=YOUR_AZURE_CLIENT_SECRET&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default",
"timeout": null
}
}
}IDs are regenerated on every copy.