> ## 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.

# Make.com Workflow Integration

> Execute Make.com scenarios via webhook for automated business process management

## Overview

Integrate Make.com (formerly Integromat) scenarios with AgentFlow to automate complex business workflows. Connect 1000+ apps and services through conversational triggers.

***

## Prerequisites

<Steps>
  <Step title="Make.com Account">
    Sign up at [make.com](https://www.make.com) - Free tier available
  </Step>

  <Step title="Create Scenario">
    Build and activate a scenario with webhook trigger
  </Step>

  <Step title="API Access">
    Get your webhook URL from Make.com
  </Step>

  <Step title="AgentFlow Admin Rights">
    Admin access to configure models
  </Step>
</Steps>

***

## Step 1: Setup Make.com Scenario

### Create New Scenario

1. Log in to [Make.com](https://www.make.com)
2. Click **Create a new scenario**
3. Name it: `AgentFlow Automation`

### Add Webhook Trigger

<Steps>
  <Step title="Add Webhooks Module">
    * Click **+** to add first module
    * Search for **Webhooks**
    * Select **Custom webhook**
  </Step>

  <Step title="Create Webhook">
    * Click **Add** to create new webhook
    * Name: `AgentFlow Trigger`
    * Click **Save**
  </Step>

  <Step title="Copy Webhook URL">
    Make will generate a URL like:

    ```
    https://hook.eu1.make.com/abc123xyz789
    ```

    Copy this URL for later use
  </Step>

  <Step title="Determine Data Structure">
    * Click **Determine data structure**
    * Keep this tab open for testing
  </Step>
</Steps>

### Build Automation Logic

Add modules to process the data:

<CodeGroup>
  ```text Example: CRM Update theme={null}
  1. Webhook Trigger (receives message)
  2. Parse JSON (extract data)
  3. Search Salesforce (find contact)
  4. Update Contact (add note)
  5. Send Email (notify sales rep)
  6. Response (send confirmation)
  ```

  ```text Example: Invoice Generator theme={null}
  1. Webhook Trigger
  2. Extract Invoice Data
  3. Calculate Totals
  4. Generate PDF (CloudConvert)
  5. Upload to Google Drive
  6. Send via SendGrid
  7. Response
  ```

  ```text Example: Social Media theme={null}
  1. Webhook Trigger
  2. Generate Content (OpenAI)
  3. Resize Images (Cloudinary)
  4. Post to Twitter
  5. Post to LinkedIn
  6. Log to Airtable
  7. Response
  ```
</CodeGroup>

### Configure Response Module

<Steps>
  <Step title="Add Webhooks Response">
    * After your logic, add **Webhooks** → **Webhook Response**
    * Connect it to your final module
  </Step>

  <Step title="Format Response">
    Set response body:

    ```json theme={null}
    {
      "data": {
        "scenario_result": "{{your.processed.data}}",
        "status": "success",
        "execution_id": "{{execution.id}}"
      }
    }
    ```
  </Step>

  <Step title="Set Status Code">
    * Status: `200`
    * Headers: `Content-Type: application/json`
  </Step>
</Steps>

### Activate Scenario

1. Click **Save** (bottom left)
2. Toggle **ON** to activate
3. The webhook is now ready to receive requests

***

## Step 2: Create AI Connection in AgentFlow

### Manual Configuration

1. Go to **Admin Dashboard** → **AI Models**

2. Click **Add Model**

3. Basic info:
   * **Name**: `Make.com CRM Automation`
   * **Model ID**: `make-scenario-executor`
   * **Description**: `Automated CRM updates via Make.com`

4. API Configuration:
   * **Endpoint**: `https://hook.eu1.make.com/abc123xyz789`
   * **Method**: POST

5. Headers (optional):
   ```json theme={null}
   {
     "make-api-key": "{{make_api_key}}",
     "Content-Type": "application/json",
     "User-Agent": "ChatPlatform/1.0"
   }
   ```

6. Request schema:
   ```json theme={null}
   {
     "scenario_id": "{{scenario_id}}",
     "webhook_data": {
       "message": "{{message}}",
       "user_id": "{{user_id}}",
       "timestamp": "{{timestamp}}",
       "context": "{{context}}"
     },
     "execution_settings": {
       "mode": "webhook",
       "wait_for_completion": true,
       "timeout": 600
     }
   }
   ```

7. Response path: `data.scenario_result`

8. Click **Save**

***

## Step 3: Import via YAML

### YAML Configuration

Create `make-workflow-config.yaml`:

```yaml theme={null}
name: "Make.com Scenario Automation"
model_id: "make-scenario-executor"
description: "Execute Make.com scenarios via webhook triggers for automated workflow processing"
endpoint: "https://hook.eu1.make.com/{{scenario_id}}"
method: "POST"

headers:
  make-api-key: "{{make_api_key}}"
  Content-Type: "application/json"
  User-Agent: "ChatPlatform/1.0"

request_schema:
  scenario_id: "{{scenario_id}}"
  webhook_data:
    message: "{{message}}"
    user_id: "{{user_id}}"
    timestamp: "{{timestamp}}"
    context: "{{context}}"
  execution_settings:
    mode: "webhook"
    wait_for_completion: true
    timeout: 600
    retry_on_failure: true

response_path: "data.scenario_result"

message_format:
  preset: "custom"
  mapping:
    role:
      source: "role"
      target: "webhook_data.user_role"
      transform: "lowercase"
    content:
      source: "content"
      target: "webhook_data.message_content"
      transform: "none"
    timestamp:
      source: "timestamp"
      target: "webhook_data.timestamp"
      transform: "iso8601"
    context:
      source: "context"
      target: "webhook_data.additional_context"
      transform: "json_stringify"
  customFields:
    - name: "scenario_metadata"
      value:
        platform: "make.com"
        version: "2.0"
        execution_type: "webhook"
        region: "eu1"
      type: "object"
    - name: "error_handling"
      value:
        max_retries: 5
        retry_delay: 2000
        exponential_backoff: true
        fallback_action: "notify_admin"
      type: "object"

suggestion_prompts:
  - "Create a scenario to sync customer data between CRM and email marketing"
  - "Set up automated lead qualification and routing"
  - "Build a scenario for invoice generation and payment tracking"
  - "Create an automated social media posting workflow"
  - "Set up a scenario for order fulfillment and shipping notifications"
```

### Import Steps

1. Replace `{{scenario_id}}` with your webhook path
2. **Admin Dashboard** → **AI Models** → **Import Model**
3. Upload YAML file
4. Review configuration
5. Click **Import**

***

## Step 4: Assign to Group

1. **Admin Dashboard** → **Groups**
2. Select or create group (e.g., "Sales Team")
3. **Manage Models** → Enable **Make.com Automation**
4. Set permissions:
   * Execution limit: 500/day
   * Priority: Medium
   * Access hours: 24/7
5. **Save Changes**

***

## Step 5: Use in Chat

### Trigger Scenarios from Chat

1. **Chat Interface** → **New Conversation**
2. Select **Make.com** model
3. Send message to trigger

### Example Use Cases

<CodeGroup>
  ```text CRM Update theme={null}
  Add new contact: John Doe, email: john@example.com, company: Acme Inc, status: lead
  ```

  ```text Invoice Generation theme={null}
  Generate invoice for Order #12345 - Customer: Jane Smith, Items: 3x Pro License ($99 each), Total: $297
  ```

  ```text Social Media theme={null}
  Create and post content about our new AI features launching next week. Include announcement on Twitter and LinkedIn.
  ```

  ```text Data Sync theme={null}
  Sync all new leads from yesterday to HubSpot and send welcome email sequence
  ```
</CodeGroup>

***

## Advanced Scenarios

### Multi-App Integration

<Steps>
  <Step title="Data Source">
    **Google Sheets** - Read customer data
  </Step>

  <Step title="Processing">
    **OpenAI** - Analyze and categorize
  </Step>

  <Step title="CRM Update">
    **Salesforce** - Create/update records
  </Step>

  <Step title="Notification">
    **Slack** - Alert team members
  </Step>

  <Step title="Storage">
    **Airtable** - Log execution
  </Step>
</Steps>

### Conditional Routing

```javascript theme={null}
// Router module configuration
if ({{message.type}} === "urgent") {
  // Route to priority channel
  return "urgent_path";
} else if ({{message.value}} > 10000) {
  // Route to high-value workflow
  return "high_value_path";
} else {
  // Standard processing
  return "standard_path";
}
```

### Error Handling

Add error handlers to your scenario:

1. Click **wrench icon** on any module
2. Select **Add error handler**
3. Choose error handling method:
   * **Ignore**: Continue execution
   * **Rollback**: Undo changes
   * **Retry**: Attempt again
   * **Commit**: Finalize and stop

***

## Regional Endpoints

Make.com has different webhook regions:

| Region              | Endpoint Format                 |
| ------------------- | ------------------------------- |
| EU (Europe)         | `https://hook.eu1.make.com/...` |
| EU2 (Europe)        | `https://hook.eu2.make.com/...` |
| US (United States)  | `https://hook.us1.make.com/...` |
| US2 (United States) | `https://hook.us2.make.com/...` |

Choose the region closest to your users for best performance.

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Webhook Not Responding">
    **Check**:

    * Scenario is activated (toggle ON)
    * Webhook URL is correct
    * No module errors in scenario
    * Execution history shows attempts

    **Fix**: Review scenario logs in Make.com
  </Accordion>

  <Accordion title="Timeout Errors">
    **Cause**: Scenario takes too long

    **Solutions**:

    * Increase timeout: `timeout: 900`
    * Use async execution
    * Optimize scenario (remove unnecessary modules)
    * Split into smaller scenarios
  </Accordion>

  <Accordion title="Data Not Passed Correctly">
    **Check**:

    * Data structure in webhook trigger
    * Mapping in subsequent modules
    * JSON format is valid

    **Fix**: Use "Determine data structure" to debug
  </Accordion>

  <Accordion title="Operations Limit Reached">
    **Cause**: Exceeded monthly operations

    **Fix**:

    * Upgrade Make.com plan
    * Optimize scenario efficiency
    * Implement caching
  </Accordion>
</AccordionGroup>

***

## Operations & Pricing

### Understanding Operations

Each action in Make.com counts as an operation:

* API calls
* Data transformations
* App connections

### Pricing Tiers

| Plan       | Operations/Month | Price  |
| ---------- | ---------------- | ------ |
| Free       | 1,000            | \$0    |
| Core       | 10,000           | \$9    |
| Pro        | 10,000           | \$16   |
| Teams      | 10,000           | \$29   |
| Enterprise | Custom           | Custom |

<Tip>
  Optimize scenarios to reduce operations - use filters and routers strategically.
</Tip>

***

## Best Practices

<CardGroup cols={2}>
  <Card title="Scenario Design" icon="sitemap">
    Keep scenarios focused on single workflows
  </Card>

  <Card title="Error Handling" icon="triangle-exclamation">
    Always add error handlers to critical modules
  </Card>

  <Card title="Testing" icon="flask">
    Test with sample data before going live
  </Card>

  <Card title="Documentation" icon="book">
    Document scenario purpose and data flow
  </Card>

  <Card title="Monitoring" icon="chart-line">
    Regularly check execution history
  </Card>

  <Card title="Optimization" icon="gauge-high">
    Monitor and reduce operation usage
  </Card>
</CardGroup>

***

## Popular Integrations

### CRM Automation

* **Salesforce** + **Gmail** + **Slack**
* Auto-create contacts from emails
* Notify team of new leads

### E-commerce

* **Shopify** + **Stripe** + **SendGrid**
* Process orders
* Generate invoices
* Send confirmation emails

### Marketing

* **Twitter** + **Buffer** + **Airtable**
* Schedule posts
* Track engagement
* Log analytics

### HR & Operations

* **BambooHR** + **Google Workspace** + **Slack**
* Onboard new employees
* Create accounts
* Notify teams

***

## Migration from Zapier

<Steps>
  <Step title="Export Zapier Workflows">
    Document current Zap triggers and actions
  </Step>

  <Step title="Rebuild in Make.com">
    Make.com offers more flexibility with:

    * Visual workflow builder
    * Advanced data transformation
    * Better error handling
    * Lower cost per operation
  </Step>

  <Step title="Update AgentFlow">
    Import new Make.com YAML configs
  </Step>

  <Step title="Test Thoroughly">
    Verify all workflows function correctly
  </Step>

  <Step title="Deactivate Zapier">
    Once confirmed, disable old Zaps
  </Step>
</Steps>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Relay Workflows" icon="arrows-spin" href="/examples/relay-workflow">
    Alternative automation platform
  </Card>

  <Card title="n8n Integration" icon="webhook" href="/examples/n8n-workflow">
    Open-source automation
  </Card>

  <Card title="LangChain Agents" icon="brain" href="/examples/langchain-agent">
    AI agent automation
  </Card>

  <Card title="Analytics" icon="chart-bar" href="/analytics/usage-metrics">
    Monitor automation performance
  </Card>
</CardGroup>
