The AI Agent node represents a fundamental shift from traditional workflows to agentic workflows. Instead of you defining each step and input manually, the AI Agent autonomously decides which tools to use and how to fill their inputs based on the conversation context.

Think of it as transforming your workflow from a rigid sequence of predefined steps into an intelligent assistant that can dynamically choose and execute the right actions.

The AI Agent has a different visual structure compared to other nodes:

  • Right handle: Connect to other nodes (like Send Message, Email, etc.) - works like any normal node
  • Bottom handle: Connect AI Tools - this is unique to AI Agent and allows you to give the AI access to other Markifact nodes as tools it can call autonomously

This dual-handle design reflects its dual nature: it’s both a processing node (like others) and a tool coordinator (unique capability).


Traditional Workflow vs. Agentic Workflow

Traditional AI Workflow

  • You define: Every input, every connection, every step
  • AI role: Processes data you provide in a predetermined sequence
  • Example: Trigger → Get GA4 Data → Analyze Data → Send Email

Agentic Workflow

  • AI decides: Which tools to use, what inputs to provide, when to execute
  • Your role: Provide high-level instructions and available tools
  • Example: “Analyze our marketing performance” → AI autonomously pulls GA4 data, analyzes trends, and suggests actions

When to Use AI Agent

AI Agent excels at:

  • Chatbots and conversational interfaces (Slack bots, customer support)
  • Dynamic data analysis where the AI chooses relevant data sources
  • Multi-step research tasks that require different tools based on findings
  • Adaptive workflows that change based on user questions

Perfect Use Case: Slack Chatbot

Build a marketing assistant that responds to questions in Slack:

  1. Trigger: Slack → On New Message
  2. AI Agent: Process the message and decide what data to fetch
  3. Tools: GA4 Get Report, Google Ads Get Report, Meta Ads Get Report (as AI tools)
  4. Response: Slack → Send Channel Message

The AI automatically chooses which marketing platform to query based on the user’s question.


Key Features

✨ Smart Input Detection

Each input field shows a sparkle icon (✨) with the hint: “Leave empty if you want AI to set”

This means you can let the AI:

  • Choose date ranges dynamically
  • Select appropriate metrics
  • Fill in contextual parameters

Conversation Memory

The Conversation ID maintains context across multiple messages:

  • Links related messages (like Slack thread IDs)
  • Remembers previous exchanges
  • Treats new threads as fresh conversations

AI Tools Integration

Connect other Markifact nodes as “tools” that the AI can call:

  • Not all nodes are available as AI tools yet (we’re rolling them out gradually)
  • Click Add Tool to see currently available AI tools
  • AI decides when and how to use each tool

Inputs

FieldTypeRequiredDescription
InstructionsDynamic Text AreaHigh-level instructions for your AI agent (e.g., “You are a helpful marketing assistant”)
MessageDynamic Text AreaThe user’s input or question that the agent should respond to
ModelModel SelectorChoose your AI model (GPT-4.1 recommended for complex tool usage)
Conversation IDDynamic TextUnique identifier to maintain conversation history (use Slack thread_id, email conversation_id, etc.)
Schema FieldsSchema BuilderDefine structured output format if you need consistent data structure

Example: Slack Marketing Bot

Here’s how to build a Slack bot that answers marketing questions:

Workflow Setup

Slack: On New Message → AI Agent → Slack: Send Channel Message

                      AI Tools:
                      • GA4 Get Report
                      • Google Ads Get Report  
                      • Meta Ads Get Report

Configuration

Instructions:

You are a helpful AI agent named Markifact.

Your role is to assist users in querying and analyzing Google Analytics (GA4) accounts and generating reports based on their requests.

Important guidelines:

- Never assume which account the user wants to query—always ask if it's not provided. Use the 'select accounts' tool to fetch the list of accounts the user has access to.

- If the user doesn’t specify a date range, be sure to ask for it before proceeding.

Message: Connect the message from your Slack trigger

Conversation ID: Connect the conversation ID from your Slack trigger for memory

User Interactions

User: “How did our Google Ads perform last week?” AI Agent: Automatically calls Google Ads Get Report tool, responds with insights

User: “Compare that to Meta Ads” (in same thread) AI Agent: Remembers previous context, calls Meta Ads Get Report, provides comparison


Memory and Context

The Conversation ID is crucial for maintaining context:

  • Same Conversation ID: AI remembers previous exchanges, builds on context
  • Different Conversation ID: Fresh start, no memory of previous conversations
  • No Conversation ID: Each message is treated independently

This works for any platform - Slack threads, email conversations, or chat sessions.


Available AI Tools

You can see the list of available AI tools by clicking the Add AI Tool handle when configuring your AI Agent. The available tools are constantly expanding as we roll out more integrations.


Output

The AI Agent returns structured output that can include:

  • Generated text response
  • Data from called tools
  • Structured fields (if schema is defined)
  • Tool execution logs and results

Connect the output to:

  • Slack/Teams: Send responses back to users
  • Email: Send detailed reports
  • Sheets: Log conversations and data

Credit Cost

Cost depends on the selected model. See the Credits & Usage page for details.

Also, for each tool called by the AI Agent, there may be additional costs based on the specific node’s credit usage (e.g., GA4 Get Report, Google Ads Get Report).

The total cost for an AI Agent run is the sum of the AI model cost and any tool costs incurred during execution.


Frequently Asked Questions