ConnectedAgent

DocsGitHub

ConnectedAgent Sample App

A powerful AI chatbot that uses Descope Outbound Apps for seamless connections to your AI tools.

AI Agent
AI Agent
Descope
Descope
Calendar
Calendar
Slack
Slack
Meet
Meet
10xCRM
10xCRM
Custom Tool
Custom Tool

Powerful Connection Capabilities

Build AI agents that seamlessly connect to the tools your users already love

Calendar

Google Calendar Integration

Allow your AI to check availability, schedule meetings, and create events directly in your users' calendars.

Meet

Google Meet Access

Create and join video meetings with a single command, with secure links generated directly from your chat interface.

CRM

CRM System Integration

Access customer data, update deals, and manage contacts without ever leaving your AI assistant's interface.

How It Works

1

Setup Outbound Applications in Descope

Setup outbound applications in Descope to connect your agent to any of the dozens of pre-defined applications.

Setup outbound apps
Application Connect
2

Connect to Your Outbound Apps

Connect via OAuth to your Outbound Apps for Descope to manage the tokens.

3

Fetch Token for Tools with Descope SDK

In your tool calls, use the Descope SDK to fetch the token and connect to applications.

User Management

Descope SDK Integration

Seamlessly integrate secure OAuth connections into your AI applications

Key Features

  • Secure token storage for all your connected services
  • User and tenant-based token management
  • Multiple tokens supported for each user (for scoped access)
  • Easy to use SDKs that intergate with existing and MCP tools

Example Usage with AI Function Calling

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;
  }
}

What if I want these tools to connect to my APIs?

Transform your application into a OAuth provider that other platforms can seamlessly integrate with, with Descope Inbound Apps.

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

Provider Benefits

  • Control access to your platform's resources
  • Implement time-based scopes for precise scoped access control
  • Allow outbound apps to easily manage scoped tokens for your application and APIs
  • Make it easy for end users to grant consent to your app's resources

Ready to Build Powerful Connected Experiences?

Join all the developers who are creating AI agents with secure access to external tools and services with Descope.

Free Forever Tier
Unlimited App Connections
Easy SDKs
AuthTown and Support Community