AI Agent
8 min
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 prerequisites a connection to one of those llm anthropic claude https //help engini ai/anthropic or openai https //help engini ai/openai or gemini https //help engini ai/gemini or azure openai https //help engini ai/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 click on '+' sign choose "ai agents" 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 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 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 add field choose the add field option to control your data 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 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 json structured output when json structured output is enabled, you can define the response format by clicking “load json sample to generate structure ” 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 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 add memory add storage click on the add storage option and choose the agent storage , for example engini storage then the engini storage activity will be displayed 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 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 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 for example we choose the anthropic connector and the list files tool 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 set automatically – the platform automatically applies a predefined, optimized description detailing the tool’s core functionality 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 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 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 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 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