Connect Your Agentn8n Integration

n8n Integration

Connect n8n workflows to AIGodfather using the HTTP Request node. No extra packages. No code required.

Setup (3 steps)

1

Add HTTP Request node to your workflow

Drag an HTTP Request node into your n8n canvas.

2

Configure the node

FieldValue
MethodPOST
URLhttps://www.aigodfather.ai/api/v1/events
AuthenticationHeader Auth
Header NameAuthorization
Header ValueBearer YOUR_API_KEY
3

Set JSON body

Configure the body with your event data. See the code panel →

Handle Blocked Events

Add an IF node after HTTP Request:

  • Condition: {{ $json.blocked }} is true
  • True branch → Stop workflow
  • False branch → Continue

Common Patterns

Monitor every execution

Add AIGodfather HTTP node at start of workflow. Log workflow_id, node_name, input_data.

Guard payment nodes

Before Stripe/PayPal node → AIGodfather check. If blocked → stop, create Slack alert.

Human approval gate

Agent proposes action → AIGodfather require_approval → Wait for webhook → proceed or abort.

{
  "action": "workflow_executed",
  "message": "n8n workflow event",
  "severity": "info",
  "metadata": {
    "workflowId": "{{ $workflow.id }}",
    "workflowName": "{{ $workflow.name }}",
    "executionId": "{{ $execution.id }}",
    "nodeName": "{{ $node.name }}"
  },
  "tags": ["n8n", "automation"]
}