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

# Choosing AI Connections

> Compare AI connections and pick the right one for your needs

# Choosing AI Connections

**Select the perfect AI connection for your agent's task.**

AgentFlow supports ANY endpoint that responds to webhooks—not just AI models. Choose from direct AI APIs, workflow automations, agent builders, or custom services.

## Connection Types

<Tabs>
  <Tab title="AI Model APIs">
    **Best for:** Direct AI responses, general intelligence

    **Options:**

    * OpenAI (GPT-4, GPT-3.5)
    * Anthropic (Claude)
    * Google (Gemini)
    * Custom AI services

    **Strengths:**

    * Easy to set up
    * Reliable and fast
    * Well-documented
    * Wide range of capabilities

    **Use When:**

    * You need intelligent responses
    * Simple prompt-to-response flow
    * Standard AI capabilities are sufficient
    * This is your first agent
  </Tab>

  <Tab title="Workflow Automations">
    **Best for:** Complex logic, multi-step processes

    **Options:**

    * N8N workflows
    * Make.com scenarios
    * Zapier automations
    * Custom automation platforms

    **Strengths:**

    * Complex business logic
    * Multiple integrations
    * Data processing
    * Visual workflow builders

    **Use When:**

    * Need to combine multiple services
    * Complex decision trees
    * Data transformation required
    * Integration with existing systems
  </Tab>

  <Tab title="Agent Builders">
    **Best for:** Pre-built agent capabilities

    **Options:**

    * ChatGPT Agent Builder
    * OpenAI Assistants API
    * LangChain applications
    * Custom agent frameworks

    **Strengths:**

    * Advanced agent features
    * Function calling built-in
    * Tool use capabilities
    * State management

    **Use When:**

    * Need function/tool calling
    * Complex agent behaviors
    * Stateful conversations
    * Advanced AI capabilities
  </Tab>

  <Tab title="Custom Endpoints">
    **Best for:** Specialized business logic

    **Options:**

    * Cloud Run functions
    * Serverless functions
    * Microservices
    * Custom HTTP APIs

    **Strengths:**

    * Complete control
    * Custom business logic
    * Any programming language
    * Full flexibility

    **Use When:**

    * Unique requirements
    * Proprietary systems
    * Specific business logic
    * Maximum customization needed
  </Tab>
</Tabs>

## Decision Guide

**Choose AI Model APIs if:**

* ✅ This is your first agent
* ✅ Simple question-answer flow
* ✅ Need intelligent responses
* ✅ Standard AI capabilities work

**Choose Workflow Automations if:**

* ✅ Multi-step processes needed
* ✅ Combining multiple services
* ✅ Complex business logic
* ✅ Data transformation required

**Choose Agent Builders if:**

* ✅ Need function/tool calling
* ✅ Advanced agent behaviors
* ✅ Stateful conversations
* ✅ Pre-built agent capabilities

**Choose Custom Endpoints if:**

* ✅ Unique requirements
* ✅ Proprietary systems
* ✅ Maximum control needed
* ✅ Custom business logic

## Quick Reference

| Use Case             | Recommended Connection               |
| -------------------- | ------------------------------------ |
| Customer Support     | OpenAI API or Claude API             |
| Code Generation      | GPT-4 API                            |
| Content Writing      | Claude API or custom workflow        |
| Data Analysis        | Custom endpoint with analytics logic |
| Multi-step Processes | N8N or Make.com workflow             |
| CRM Integration      | Workflow automation + AI             |
| Document Processing  | Agent Builder + custom logic         |
| Inventory Queries    | Custom endpoint with database        |

<Tip>
  You can change your agent's connection anytime and mix different connection types across agents!
</Tip>

<Card title="Next: Configure Your Agent" href="/agents/configuring-agents">
  Learn advanced configuration options
</Card>
