For the complete documentation index, see llms.txt. This page is also available as Markdown.

Glean

Add Akto guardrails to Glean agents using Glean's custom tools

Overview

Glean is an enterprise AI platform that lets teams build and deploy AI agents across their organisation. The Akto guardrails integration adds inline security enforcement to any Glean agent - every user message and agent response is evaluated by Akto before reaching the model or the end user, so prompt injection, PII leaks, and policy violations can be blocked in real time.

The integration works through Glean's Custom Tools (formerly Actions). You create a custom tool that calls Akto's guardrails service, then attach it to whichever agents you want to protect.

How It Works

Prerequisites

  • A Glean account with admin access to the Admin Console

  • The Akto Guardrails service URL - provisioned and shared by Akto

  • An Akto API Token - retrieved from Akto Argus → Connectors → Setup Guardrail

Steps to Connect

Part 1 - Create the Custom Tool

1

Open the Admin Console

Log in to Glean as an admin. Navigate to the Admin Console and go to Tools in the left navigation.

2

Create a new tool

Click Add, then select Create from Scratch. The custom tool form opens.

3

Fill in the basic info

Give the tool a clear name (e.g. Akto Guardrail) and an optional description so agents and admins can identify it. Set the Tool Type to Read.

4

Set the trigger condition

Under Trigger Condition, add a custom prompt that tells the agent when to invoke this tool.

Custom Prompt

This prompt determines when the guardrail fires - for example, you can configure it to trigger on every user message so no input reaches the model unchecked.

5

Configure the functionality

Under Functionality, click Get Started, then paste the OpenAPI spec below.

Note

OpenAPI Spec
6

Configure authentication

Under Authentication, set the type to API Key, then enter your Akto API Token.

To retrieve your token:

  1. Open your Akto Argus dashboard.

  2. Go to Connectors → Setup Guardrail.

  3. Copy the API token shown on that page.

Paste the token into the API Key field in the Glean tool form.

7

Configure deployment

Open the Deploy tab and expand the Agents section. Under Allow teammates to add tools to agents, select one of the following:

  • Enable for all teammates - any teammate can add this tool to agents.

  • Enable for selected teammates - only the teammates you specify can add this tool to agents.

8

Save the tool

Click Save. The custom tool is now created and available to attach to agents.

Part 2 - Attach the Tool to an Agent

Repeat this for each agent you want to guardrail.

1

Open the Agents list

From the Glean home page, click Agents in the navigation.

2

Select your agent

Find the agent you want to protect and click on it to open its detail view.

3

Open the agent setup

Click View Agent Setup. The agent configuration panel opens.

4

Open the Tools panel

In the right-side navigation of the agent setup, click the Tools icon.

5

Add the Akto Guardrail tool

Click Add, then search for the tool by name (e.g. Akto Guardrail). Alternatively, browse to it under the Custom Tools section.

Select the tool and confirm.

6

Save the agent

Save the agent configuration. The Akto guardrail is now active on this agent and will evaluate every incoming message before it reaches the model.

Get Support

There are multiple ways to request support from Akto. We are 24X7 available on the following:

  1. In-app intercom support. Message us with your query on intercom in Akto dashboard and someone will reply.

  2. Join our discord channel for community support.

  3. Contact support@akto.io for email support.

  4. Contact us here.

Last updated