Build AI agents that seamlessly connect to the tools your users already love
Allow your AI to check availability, schedule meetings, and create events directly in your users' calendars.
Create and join video meetings with a single command, with secure links generated directly from your chat interface.
Access customer data, update deals, and manage contacts without ever leaving your AI assistant's interface.
Setup outbound applications in Descope to connect your agent to any of the dozens of pre-defined applications.
Connect via OAuth to your Outbound Apps for Descope to manage the tokens.
In your tool calls, use the Descope SDK to fetch the token and connect to applications.
Seamlessly integrate secure OAuth connections into your AI applications
Integrate with function calling to enable seamless access to external services:
const functionDefinition = {
name: "access_google_calendar",
description: "Access Google Calendar events",
parameters: {
type: "object",
properties: {
provider: {
type: "string",
enum: ["google-calendar"]
},
scopes: {
type: "array",
items: {
type: "string"
}
}
},
required: ["provider", "scopes"]
}
};
async function accessGoogleCalendar(params) {
try {
// Get OAuth token through Descope
const token = await getOAuthToken({
appId: params.provider,
scopes: params.scopes
});
// Use token to fetch calendar data
const response = await fetch(
"https://www.googleapis.com/calendar/v3/calendars/primary/events",
{
headers: {
Authorization: `Bearer ${token}`
}
}
);
return await response.json();
} catch (error) {
// Handle connection needed case
if (error.code === "token_not_found") {
return {
needsConnection: true,
provider: params.provider
};
}
throw error;
}
}
Transform your application into a OAuth provider that other platforms can seamlessly integrate with, with Descope Inbound Apps.
Inbound Apps help your apps become a service provider that others can connect to. Create secure integration points that allow third-party applications to leverage your platform's functionality through standardized OAuth protocols.
Explore 10x CRM for more details