Ai Agent Documentation
Welcome! This guide provides a comprehensive overview of the Ai Agent platform, helping you build, manage, and deploy powerful AI workflows.
Ai Agent is a visual workflow builder designed to simplify the creation and management of AI-driven processes. Built on Next.js, it leverages a node-based interface where you can connect various components to define complex AI tasks.
Authentication is handled via Solana wallets, ensuring secure access to your workflows. Workflows you create are saved to a Supabase backend, associated with your wallet address.
Core Concepts
Workflows are the heart of Ai Agent. They represent a sequence of operations, defined by interconnected nodes, that collectively perform an AI task.
- Visually constructed in the Workflow Editor.
- Can range from simple prompt-response chains to complex, multi-tool interactions.
- Saved per user and can be loaded, edited, and run.
Nodes are the individual building blocks of a workflow. Each node performs a specific function.
- Dragged onto the canvas from the sidebar.
- Have input and/or output "handles" for connections.
- Configurable via the Settings Panel when selected.
Node | Description | Key Configuration | Connections |
---|---|---|---|
Input Node | Starts the workflow, typically with user text input. Provides the initial data or prompt. | Label (e.g., 'User Query') | Outputs to AI Agent Node (data input). |
File Input Node | Allows workflows to process data from uploaded files (text, CSV, etc.). | Label, File selection (via Settings Panel) | Outputs to AI Agent Node (data input). |
API Trigger Node | Allows workflows to be triggered by an external POST request to a unique URL. | Displays API Key and Endpoint URL when workflow is saved with this node. | Outputs data from the API request to the next connected node. |
AI Agent Node | The core LLM processing unit. Executes prompts using a selected AI model and can utilize tools. | AI Model, System Prompt, Tool Selection | Inputs: from Input Node, File Input Node, API Trigger Node, or other AI Agents. Outputs: to Output Node (main response), to Tool Nodes (tool usage), or other AI Agents. |
Tool Node | Represents a specific external function or utility (e.g., Get Weather, Search Web, DexScreener tools). | Specific Tool selection and its required parameters (via Settings Panel). | Inputs: from AI Agent Node (tool connector). Outputs: data back to the AI Agent. |
Set Variable Node | Stores data into a dynamic variable that can be accessed later in the workflow. | Variable Name, Value (can be static or from input). | Input: data to store. Output: passes through the input data. |
Get Variable Node | Retrieves data from a previously set dynamic variable. | Variable Name. | Output: the value of the variable. |
Conditional Node (IF) | Directs the workflow along one of two paths (True or False) based on a condition evaluated by an AI Agent. | Condition prompt for an AI Agent (implicitly configured via connected AI Agent). | Input: from an AI Agent. Outputs: 'True' path, 'False' path. |
Output Node | Represents the end point of a workflow, displaying the final AI response or result in the chat. | Label (e.g., 'Agent Response') | Inputs: from AI Agent Node or other processing nodes. |
Beta Notice: API Keys Provided
Determines the sentiment (e.g., positive, negative, neutral) of a given text.
Inputs:
Text string.
Outputs:
Sentiment label and/or score.
Configuration Notes:
Performs mathematical calculations based on a string expression (e.g., '2 + 2 * 5').
Inputs:
Mathematical expression as a string.
Outputs:
The numerical result of the calculation.
Configuration Notes:
Checks orders paid for a specific token on a given chain via DexScreener.
Inputs:
Chain ID (string, e.g., 'solana'), Token Address (string).
Outputs:
An array of order objects (type, status, payment timestamp).
Configuration Notes:
A simple tool that echoes back the input it receives. Useful for testing and debugging workflows.
Inputs:
Any text string or data.
Outputs:
The same text string or data it received.
Configuration Notes:
Identifies and extracts key terms or phrases from a given text.
Inputs:
Text string.
Outputs:
A list of extracted keywords.
Configuration Notes:
Creates an image based on a textual prompt using services like Fal.ai.
Inputs:
Text prompt describing the desired image.
Outputs:
URL or data of the generated image.
Configuration Notes:
Retrieves the latest boosted token from DexScreener.
Inputs:
None.
Outputs:
A single boosted token object (amount, icon, description, etc.).
Configuration Notes:
Retrieves the latest token profile from DexScreener.
Inputs:
None.
Outputs:
A single token profile object (URL, icon, description, links, etc.).
Configuration Notes:
Fetches detailed information for a specific token pair from DexScreener.
Inputs:
Chain ID (string, e.g., 'solana'), Pair Address (string).
Outputs:
A single pair object with comprehensive details.
Configuration Notes:
Fetches the SOL balance for a given Solana wallet address.
Inputs:
Solana wallet address (string).
Outputs:
Object containing SOL balance (number) and its USD value (number).
Configuration Notes:
Retrieves the current date and time, optionally for a specific timezone.
Inputs:
Optional: Timezone string.
Outputs:
Current date and time as a string.
Configuration Notes:
Fetches the SPL token balances for a given Solana wallet address.
Inputs:
Solana wallet address (string).
Outputs:
An array of token balances, each with token details (address, amount, symbol, name, USD value).
Configuration Notes:
Fetches all listed pairs for a given token address on a specific chain from DexScreener.
Inputs:
Chain ID (string, e.g., 'solana'), Token Address (string).
Outputs:
An array of pair objects associated with the token.
Configuration Notes:
Retrieves information for one or multiple tokens by their addresses on a specific chain from DexScreener.
Inputs:
Chain ID (string, e.g., 'solana'), Token Addresses (string, comma-separated for multiple).
Outputs:
An array of token information objects (price, market cap, etc.).
Configuration Notes:
Retrieves the token with the most active boosts from DexScreener.
Inputs:
None.
Outputs:
A single boosted token object, similar to 'Latest Boosted Tokens'.
Configuration Notes:
Fetches current weather conditions for a specified location.
Inputs:
Location string (e.g., city name, zip code).
Outputs:
Weather data (temperature, conditions, etc.).
Configuration Notes:
Makes arbitrary HTTP requests (GET, POST, etc.) to a specified URL.
Inputs:
URL, HTTP method, optional headers, optional body.
Outputs:
HTTP response status, headers, and body.
Configuration Notes:
Searches for token pairs on DexScreener based on a query (e.g., 'SOL/USDC').
Inputs:
Search query (string).
Outputs:
An array of matching pair objects with details like pair address, tokens, price, volume.
Configuration Notes:
Performs a web search using a configured search engine.
Inputs:
Search query string.
Outputs:
List of search results (titles, links, snippets).
Configuration Notes:
Sends an email using a configured email service.
Inputs:
Recipient email address, subject line, email body content.
Outputs:
Confirmation status of the email sending attempt.
Configuration Notes:
Condenses a longer piece of text into a shorter summary.
Inputs:
Text string to be summarized.
Outputs:
Summarized text.
Configuration Notes:
Translates text from one language to another.
Inputs:
Text string, target language code (e.g., 'es', 'fr'). Optionally, source language code.
Outputs:
Translated text string.
Configuration Notes:
Adding Nodes
Drag nodes from the
Connecting Nodes
Click and drag from a node's output handle (usually on the right or bottom) to another node's input handle (usually on the left or top). Valid connections will form an edge. The editor enforces connection logic (e.g., an Input Node can only connect to an AI Agent's data input).
Configuring Nodes
Click on a node in the canvas to select it. The
Saving Workflows
Use the "Save Workflow" button in the top bar of the build page. Provide a name and description for your workflow. It will be saved and associated with your authenticated wallet.
Running & Testing
Once a workflow is saved (or even during building for quick tests), you can interact with it using the