> ## Documentation Index
> Fetch the complete documentation index at: https://docs.engini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Agent

With Engini’s AI Agent, you can add powerful AI capabilities directly into your workflows- generate text, analyze data, transform content, and automate decisions using natural language.

To get started with the AI Agent, make sure you have an active account and connection to a Large Language Model (LLM). Engini currently supports connections such as **Claude** and **OpenAI** which must be enabled in you account before using the agent.

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/7Fq4E8OUUNU" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />

### Prerequisites

* A connection to one of those LLM: [Anthropic Claude](/help/apps/anthropic) or [OpenAI](/help/apps/openai) or [Gemini](/help/apps/gemini)or [Azure OpenAI](/help/apps/azure-openai).

## Activities

### AI Agent Activity

To get started, the first step is to **create a new workflow**. Once your workflow is ready, follow the steps:

1. click on '+' sign:

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/Oul-jvtqgWU5fwwpUyQ2j_untitled-design-3.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=f9277eaf1a871e9ca080031e089a3b29" alt="" width="1918" height="865" data-path="help/assets/ai/ai-agent/Oul-jvtqgWU5fwwpUyQ2j_untitled-design-3.png" />

2. choose "AI Agents":

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/3Pyh5I85oh-zVSKCQQdnT_untitled-design-2026-05-25t160125835.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=3ae285b384c26e5550c5bb9eb39869a7" alt="" width="1913" height="985" data-path="help/assets/ai/ai-agent/3Pyh5I85oh-zVSKCQQdnT_untitled-design-2026-05-25t160125835.png" />

3. Once you’ve opened the AI Agents menu, you’ll find a suite of powerful tools designed to integrate and specialized logic into your workflows.

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/VoJjlBQL_q1Dk7DjEhvWS_untitled-design-2026-05-25t160013928.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=130e0fc76f0fe9f98047d931548de04e" alt="" width="1912" height="984" data-path="help/assets/ai/ai-agent/VoJjlBQL_q1Dk7DjEhvWS_untitled-design-2026-05-25t160013928.png" />

*AI Agent-* This activity allows you to deploy an intelligent AI Agent into your workflow capable of executing complex reasoning, interacting with specialized tools, and processing data dynamically based on your instructions.

<img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/UMg6Qa8T69nXTJ7owA2ni_untitled-design-9.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=5b8b0e5580b917b4386d963fa587e542" alt="" width="1917" height="982" data-path="help/assets/ai/ai-agent/UMg6Qa8T69nXTJ7owA2ni_untitled-design-9.png" />

1. *Prompt (Required)* – Enter the core instruction that defines how the AI Agent should behave inside your workflow. Here you specify what the model should do with the data coming from your connected systems (such as CRMs, ERPs, or databases). The prompt can dynamically reference values from any previous workflow step using the tooltip.
   **Note:** There is a character limit of 128 characters for this field.

2. *Add Field -* Choose the add field option to control your data:

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/bJrTIODIaKRsWf5gNEhBF_test.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=81eee6d2539b5f0b69b392a61c3a128a" alt="" width="393" height="508" data-path="help/assets/ai/ai-agent/bJrTIODIaKRsWf5gNEhBF_test.png" />

   * *Event Delivery Mode-* Defines how the AI Agent sends updates about its execution. You can choose whether events are delivered using POST or Stream, depending on how the receiving system is built.

   * *Events Callback URL-* The endpoint URL where the AI Agent should send execution events. This is used when an external system needs to receive updates about the Agent’s actions.

   * *Files \[]-* Allows you to attach files for the AI Agent to use as part of its task. The Agent can use the provided files as additional context when generating a response or performing actions. When selecting this option, you can define the following fields for each file:

     <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/QXRECwnkSdicCVXIli2L7_image.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=af0db56a169e7977e086cb6fbc454478" alt="" width="391" height="400" data-path="help/assets/ai/ai-agent/QXRECwnkSdicCVXIli2L7_image.png" />

     * *URL-* The file URL that the AI Agent can access and use as input.

     * *Content (base64)-*  The file content encoded in base64, used when the file is passed directly instead of through a URL.

     * *Name*- The file name that will be shown or used by the AI Agent.

     * *Mimetype*- The file type, so the AI Agent can understand how to handle the file.

   * *Max Iterations*- This defines the maximum number of reasoning steps the AI Agent is allowed to take when performing tool calls or multi-step logic. A higher number allows the agent to break the task into more steps, while a lower number limits how long the agent can run.

   * *Return Intermediate Steps*- When enabled, it displays more details.

   * *System Message*- Here you define high-level instructions such as tone, formatting rules, or domain focus (e.g., “You are a CRM assistant” or “Always answer in JSON”).
     **Note:** There is a character limit of 128 characters for this field.

3. *JSON Structured Output -* When JSON Structured Output is enabled, you can define the response format by clicking **“Load JSON sample to generate structure.”**

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/7Ee5pl6FwpfVarbrFjhud_image.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=a05df797042967436dd16d2ba3080db4" alt="" width="776" height="473" data-path="help/assets/ai/ai-agent/7Ee5pl6FwpfVarbrFjhud_image.png" />

This action lets you create the expected JSON schema in two ways:
You can paste or enter a custom JSON example directly. The system will generate the schema based on the sample you provided.

4. *Add AI Model (Required) -* This is where you choose the **AI model** that will power your agent. Select one of the LLMs you’ve already connected to Engini (e.g., Claude, OpenAI, Gemini or Azure OpenAI). The model you choose is the one the agent will use every time this step runs.

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/Gmo7yKcO8kMg1MgXIfmkD_untitled-design-10.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=ea63eebf094cdcef1467efe233ffb579" alt="" width="1912" height="983" data-path="help/assets/ai/ai-agent/Gmo7yKcO8kMg1MgXIfmkD_untitled-design-10.png" />

5. *Add Memory-*

*Add Storage -* Click on the Add Storage option and choose the *Agent Storage*, for example Engini storage.

<img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/ck9iX0zoOaWeuOGJiMppF_untitled-design-11.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=27e27c66f89964969ac4ae6ac5cae46c" alt="" width="1912" height="983" data-path="help/assets/ai/ai-agent/ck9iX0zoOaWeuOGJiMppF_untitled-design-11.png" />

then the Engini Storage activity will be displayed:

<img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/BYfD43ssQPMmsYBzG4Gw3_2-3.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=a3f1d3e9ada69fa19c2bb263d06e613f" alt="" width="1917" height="985" data-path="help/assets/ai/ai-agent/BYfD43ssQPMmsYBzG4Gw3_2-3.png" />

1. *Context Window Length -* Defines how far back the agent can “remember” when retrieving data from Engini Storage. A higher value keeps more history, while a lower value limits the agent to recent interactions.

   2. *Session Id -* Keeps all messages and memory tied to the same conversation.
      Each session needs a unique identifier so the agent knows which stored context belongs together.

2. *Add Tools -* This is where you choose the activities the AI Agent is allowed to use from the connections in your account. You can select multiple activities from different systems such as Priority, Engini Tables, Okta, and more. The agent will decide when and how to use these tools based on your prompt and system message, and there is no predefined flow between the tools.

   <img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/fYFugXwTGqzdsy8Mc8JxV_untitled-design-12.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=ebd2045158ce06483e9cd499f7a14461" alt="" width="1913" height="982" data-path="help/assets/ai/ai-agent/fYFugXwTGqzdsy8Mc8JxV_untitled-design-12.png" />

For Example: We Choose the Anthropic Connector and the *List Files* Tool.

<img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/DLyVKMYj6DuF_akJijPz9_untitled-design-13.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=3a27fa81b179d8244ea329bc1bda7183" alt="" width="1915" height="982" data-path="help/assets/ai/ai-agent/DLyVKMYj6DuF_akJijPz9_untitled-design-13.png" />

1. *Tool Description -* This field acts as the "instruction label" that the AI Agent reads to understand what the tool does. The agent uses this description during its reasoning loop to decide whether it needs to run this specific tool to answer a prompt.
   1. *Set Automatically* – The platform automatically applies a predefined, optimized description detailing the tool’s core functionality.
   2. *Set Manually* – Opens a text field allowing you to write your own custom rules, context, or constraints for when the agent should use this tool.
2. *Top N-* Click this field to specify the maximum total number of file entries the tool should retrieve and return to the AI Agent at one time. If left blank, it defaults to returning all found entries.

*Let the AI Decide-* The sparkle icons indicate fields where you can hand control over to the agent's logic.

***Note***: The agent may use some activities, all, or none of tools, depending on the instructions you give in the prompt and the decisions it makes during execution.

### Map Object Array

The **Map Object Array** activity allows you to convert a list of values into a structured array of objects. This is useful when another activity expects data in a specific object format instead of a simple list of values.

The activity takes an input array, creates an object for each item in the list, and returns a new array that can be consumed by downstream activities such as AI Agents.

<img src="https://mintcdn.com/engini/mV-AWsgkc1kNftEo/help/assets/ai/ai-agent/AQML1fWttJyzBIKcEOz0y_2-21.png?fit=max&auto=format&n=mV-AWsgkc1kNftEo&q=85&s=de88cafe62e4c78ef5c2362d7cd83e17" alt="" width="1915" height="907" data-path="help/assets/ai/ai-agent/AQML1fWttJyzBIKcEOz0y_2-21.png" />

1. *Data List -* The source array that will be transformed into an object array. This field should contain the list of items you want to process. The activity will iterate through every item in the selected array and generate a new object based on the configuration you define.
   * For example, if the Data List contains multiple file records, the activity will create a structured object for each file in the list.
2. *Object Name -* Defines the type of object that will be generated for each item in the Data List. Currently, the available option is:
   * *File -* Creates a file object that can later be used by AI-related activities, such as the AI Agent's **Files\[]** input.
   * When **File** is selected, the activity expects file-related properties to be mapped through the **Add Field** section. This ensures the generated objects follow the structure required by activities that work with files.
3. *Add Field -* Allows you to define the properties that should be included in each generated object. Each field represents a piece of information that will be added to the output object. You can map values dynamically from previous workflow steps. Common examples for file objects include:
   * URL
   * Filename
   * MIME Type
   * Content (Base64)

**Note:** Multiple fields can be added to create a complete object structure.

**Example:** A common use case is preparing a collection of files before sending them to an AI Agent.

The activity receives an array of file records, converts each item into a File object, and returns an object array that can be mapped directly into the AI Agent's **Files\[]** field.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.