Last updated

AI Agent

An AI Agent in Frontegg.ai is a server-side identity-aware agent definition that acts as the central integration point between your AI logic and the Frontegg platform. You configure and manage agents directly in the Frontegg portal under [ENVIRONMENT] → AI Agents → Agents.

Each agent includes the following key configuration fields:

FieldDescription
NameA human-readable label to identify the agent in the dashboard.
DescriptionA short internal note describing the agent’s purpose or functionality.
Agent IDA unique identifier used to reference the agent in your code and SDK setup.
Model ProviderSpecifies which LLM provider the agent will work with (e.g., OpenAI).
Orchestration PlatformIndicates the framework used for agent execution, such as LangChain.
Agent URLThe redirect URL used after authentication. Also used internally across the environment as a dynamic redirect target for various flows.
Login URLDefines the location of your login interface:
- For hosted login, this should end with /oauth
- For embedded login, it typically matches your app’s base URL. This URL is used for login redirection across your Frontegg environment.
API KeyA secret used to authenticate requests from the Frontegg platform to your agent or services.

The agent itself does not include any logic or integrations directly — rather, it is a metadata object that your runtime code connects to using the Frontegg SDK. You reference the Agent ID, Client ID, Secret, and Base URL in your .env file or config, which the SDK uses to authenticate the agent, fetch available tools and resolve user context during runtime.


AI Agent creation and management

To manage AI agents in your environment, navigate to [ENVIRONMENT] → AI Agents → Agents.

AI

Creating an AI Agent

To create an agent:

  1. Click Create Agent
  2. Fill in the following fields:

AI

  • Name – A human-readable name for the agent.
  • Description – A short summary of the agent’s purpose.
  • Model Provider – Select from: Anthropic, Google, Meta, Mistral, OpenAI, or Other.
  • Orchestration Platform – Select from: Autogen, CrewAI, LangChain, or Other.
  • Agent URL – The URL your users are redirected to after authentication.
  1. Click Save to create the agent.

Deleting an AI Agent

To delete an agent:

  1. Select the AI agent from the list.

AI

  1. Scroll to the bottom of the page.

AI

  1. Click the Delete button and confirm the action.

Deleting an AI agent

Deleting an agent is permanent and cannot be undone.