AutomationFlowsAI & RAG › Alephant Agent Gateway N8n Support Demo

Alephant Agent Gateway N8n Support Demo

Alephant Agent Gateway n8n Support Demo. Uses httpRequest. Event-driven trigger; 3 nodes.

Event trigger★☆☆☆☆ complexity3 nodesHTTP Request
AI & RAG Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Alephant Agent Gateway n8n Support Demo",
  "nodes": [
    {
      "parameters": {},
      "id": "manual-trigger",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -640,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ ($env.GATEWAY_BASE || $env.ALEPHANT_GATEWAY_URL || 'http://127.0.0.1:8080').replace(/\\/$/, '') + '/v1/chat/completions' }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "={{ 'Bearer ' + ($env.ALEPHANT_API_KEY || $env.ALEPHANT_CONTROL_OPENROUTER_API_KEY) }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\"model\": $env.ALEPHANT_MODEL || \"openai/gpt-4o-mini\", \"messages\": [{\"role\": \"system\", \"content\": \"You are an n8n support triage agent. Think briefly, use the supplied policy context, and return a concise operator-facing next action.\"}, {\"role\": \"user\", \"content\": \"Plan a refund risk escalation response. Policy context: refund policy requires account standing, payment state, and concise next action.\"}], \"temperature\": 0.2}"
      },
      "id": "call-gateway-llm",
      "name": "Call Gateway LLM",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -300,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ ($env.GATEWAY_BASE || $env.ALEPHANT_GATEWAY_URL || 'http://127.0.0.1:8080').replace(/\\/$/, '') + '/v1/agent/events' }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "={{ 'Bearer ' + ($env.ALEPHANT_API_KEY || $env.ALEPHANT_CONTROL_OPENROUTER_API_KEY) }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ source: 'n8n', events: [{ version: '2026-05-27', event_id: 'evt_n8n_execution_' + $execution.id, type: 'execution.started', agent_id: $env.ALEPHANT_AGENT_ID || 'n8n-demo-agent', agent_name: $env.ALEPHANT_AGENT_NAME || 'n8n Workflow Demo Agent', run_id: 'exec_' + $execution.id, timestamp: new Date().toISOString(), workflowId: $workflow.id || 'wf_support_triage', executionId: String($execution.id), metadata: { workflow_name: 'Alephant Agent Gateway n8n Support Demo' } }, { version: '2026-05-27', event_id: 'evt_n8n_tool_started_' + $execution.id, type: 'node.started', agent_id: $env.ALEPHANT_AGENT_ID || 'n8n-demo-agent', agent_name: $env.ALEPHANT_AGENT_NAME || 'n8n Workflow Demo Agent', run_id: 'exec_' + $execution.id, timestamp: new Date().toISOString(), workflowId: $workflow.id || 'wf_support_triage', executionId: String($execution.id), nodeId: 'call-gateway-llm', nodeName: 'Call Gateway LLM', nodeType: 'n8n-nodes-langchain.lmChatOpenAi', metadata: { tool_name: 'gateway.chat_completions', model: $env.ALEPHANT_MODEL || 'openai/gpt-4o-mini' } }, { version: '2026-05-27', event_id: 'evt_n8n_tool_finished_' + $execution.id, type: 'node.finished', agent_id: $env.ALEPHANT_AGENT_ID || 'n8n-demo-agent', agent_name: $env.ALEPHANT_AGENT_NAME || 'n8n Workflow Demo Agent', run_id: 'exec_' + $execution.id, timestamp: new Date().toISOString(), workflowId: $workflow.id || 'wf_support_triage', executionId: String($execution.id), nodeId: 'call-gateway-llm', nodeName: 'Call Gateway LLM', nodeType: 'n8n-nodes-langchain.lmChatOpenAi', metadata: { result_preview: ($json.choices?.[0]?.message?.content || '').slice(0, 240) } }] }) }}"
      },
      "id": "emit-alephant-agent-events",
      "name": "Emit Alephant Agent Events",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        60,
        0
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Call Gateway LLM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call Gateway LLM": {
      "main": [
        [
          {
            "node": "Emit Alephant Agent Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "alephant-agent-gateway-n8n-demo",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": []
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Alephant Agent Gateway n8n Support Demo. Uses httpRequest. Event-driven trigger; 3 nodes.

Source: https://github.com/AlephantAI/AIephant-AI-Agent-Gateway/blob/06677c49c509f9b8aae28eba8beda2e2c4b53ace/examples/agent/n8n/workflow.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Supercharge Claude 3.7 with full customization & deeper reasoning!

Form Trigger, Form, HTTP Request
AI & RAG

ProceedGate Guard Sub-workflow: Costly API. Uses executeWorkflowTrigger, httpRequest. Event-driven trigger; 5 nodes.

Execute Workflow Trigger, HTTP Request
AI & RAG

Model Onboarding Flow. Uses start, telegramTrigger, googleSheets, httpRequest. Event-driven trigger; 4 nodes.

Start, Telegram Trigger, Google Sheets +1
AI & RAG

Topic Planner (Claude). Uses httpRequest. Event-driven trigger; 4 nodes.

HTTP Request
AI & RAG

Video Automation Pod Workflow. Uses dropboxTrigger, httpRequest. Event-driven trigger; 4 nodes.

Dropbox Trigger, HTTP Request