Development Preview — This application is currently in development and not yet operational. No real services are provided. Registration is disabled.

SocialAI
Integrations

Connecting Your n8n Workflow

Set up automatic lead ingestion from Instagram using n8n.

Connecting Your n8n Workflow

SocialAI integrates with n8n to automatically ingest DMs from Instagram and other platforms.

Prerequisites

  • An n8n instance (cloud or self-hosted)
  • Access to Instagram's API or a service like ManyChat
  • Your SocialAI API key (coming soon)

Setting Up the Workflow

Step 1: Create a New Workflow

In n8n, create a new workflow and add a trigger (e.g., a Webhook or Instagram node).

Step 2: Configure the HTTP Request

Add an HTTP Request node with the following settings:

  • Method: POST
  • URL: https://your-app.vercel.app/api/leads/ingest
  • Body Type: JSON
  • Body Content:
{
  "userId": "your-user-id",
  "platform": "instagram",
  "handle": "{{ $node.trigger.json.sender_username }}",
  "messageText": "{{ $node.trigger.json.message }}"
}

Step 3: Test the Workflow

Send a test message and verify it appears in your Lead Inbox.

Adding AI Scoring in n8n

If you want n8n to perform AI analysis directly, add a ChatGPT node that returns this JSON:

{
  "score": "warm",
  "numericScore": 7.5,
  "reasoning": "User asked about pricing.",
  "objections": ["Price concerns"],
  "suggestedReplies": [
    { "tone": "Professional", "text": "Great question! Our pricing..." },
    { "tone": "Friendly", "text": "Hey! So glad you asked..." }
  ]
}

Then, send this data to /api/leads/ingest along with the message.

Related Articles