Build an n8n marketing agent on TikTok and Instagram data

Updated

Virlo is social listening for TikTok and Instagram Reels. An n8n AI Agent can plan and send reports, but it needs a data source for social video. Add Virlo's MCP server to the agent's MCP Client Tool and your workflow can pull trends, sounds, hooks and outlier videos from a database of 23.1M viral videos, then deliver them wherever n8n reaches.

  • MCP Client Tool: one URL and a bearer key
  • HTTP Request node for fixed, scheduled pulls
  • Virlo webhooks to start a workflow the moment something changes

Part of Virlo's AI assistant guides. Prefer no-code Zaps? See Zapier. Want the raw server details? See the Virlo MCP server.

How do I connect Virlo to n8n?

Five steps in the n8n editor. The result: a scheduled marketing agent that researches your niche and posts a summary.

  1. Step 1: Create your Virlo account for free

    Create your free Virlo account in under a minute. Already signed up? Open API Keys.
  2. Step 2: Generate a Virlo API key

    In the Virlo developer dashboard, open API Keys and create one. n8n stores it as a credential, so it never sits in the workflow itself.

  3. Step 3: Add the MCP Client Tool to an AI Agent

    Add an AI Agent node with your chat model, then attach an MCP Client Tool. Set Endpoint to the URL below, Server Transport to HTTP Streamable, and Authentication to Bearer Auth with your Virlo key.

    Endpoint
    https://dev.virlo.ai/api/mcp/mcp
  4. Step 4: Trigger it on a schedule and send the result

    Put a Schedule Trigger in front of the agent (for example, Mondays at 8:00) and give the agent its job in the prompt. After the agent, add a Slack, Gmail or Google Sheets node with its output.

    Agent prompt
    Use Virlo to find this week's 3 trends to copy and 5 top outlier videos in [your niche] on TikTok and Instagram. Write a short report with links.
  5. Step 5: Optional: start workflows from Virlo webhooks

    Add a Webhook node, copy its production URL, and register it with Virlo for the events you care about. Your workflow then runs the moment a tracked creator posts an outlier, an agent run finishes or a trend list updates.

    Register the webhook
    curl -X POST https://api.virlo.ai/v1/webhooks \
      -H "Authorization: Bearer virlo_tkn_YOUR_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "YOUR_WEBHOOK_URL",
        "enabled_events": ["tracking.outlier_video.detected"]
      }'

Test it with Execute workflow before you activate it. The agent shows each Virlo tool call in its log, so you can see exactly what it asked.

MCP Client Tool vs HTTP Request vs webhooks: which n8n node should I use?

NodeWhat it does with VirloBest for
MCP Client Tool (with AI Agent)Lets the agent choose among Virlo's tools from a plain-English jobFlexible research and written reports
HTTP RequestCalls one Virlo API endpoint, such as GET https://api.virlo.ai/v1/content-trends, with a bearer headerThe same data on a fixed schedule, into a sheet or database
WebhookReceives Virlo events: agent runs, tracking outliers, trend updatesReacting the moment something changes
Schedule TriggerStarts any of the above on a timerWeekly reports and daily checks

All three use the same Virlo account and key. Mix them: a webhook can start an agent that then researches with MCP.

What would an Instagram breakout alert send this week?

A Monday workflow that asks Virlo for breakout sounds on Instagram Reels gets rows like these: sounds rising fast from a small base, ready to drop into Slack or a sheet.

In Virlo's data, "Vintage November" is the fastest-rising sound on Instagram Reels: 37 Reels used it in the last 7 days, against about 7 a week before, as of November 18, 2026.

As of November 18, 2026 at 12:03 UTC

What would an Instagram breakout alert send this week?
SoundArtistReels (7 days)Usual week before
Vintage NovemberPeaceful Reveries377
Dilruba DilnasheenRito Riba, Siddhant kaushal4010
What's Up - Deep houseHARDMAX252
James Bond ThemeJohn Barry Orchestra162
Swag Surfin'Whethan10under 1

See all 29 breakout sounds on Instagram Reels

Usage history and the Reels behind every sound are in the Virlo app.

Open sounds in Virlo

How this sample is made

Source
Virlo's sound rankings for Instagram Reels, built from the Reels Virlo collects.
Window
Reels posted in the last 7 days that Virlo collected. Counts are Reels in Virlo's data, not every video on the platform.
Method
Ranked by breakout score: use in the last 7 days against the sound's usual weekly use before that, so a sound rising from a small base ranks above an old hit.
As of
November 18, 2026 at 12:03 UTC. Rebuilt every day.
Made by
Numbers are pulled automatically from Virlo's data; the text around them is written by the Virlo team.

Suggested citation: Source: Virlo, “Build an n8n marketing agent on TikTok and Instagram data”, virlo.ai/n8n

Which Virlo webhook events can start an n8n workflow?

Register any of these with POST /v1/webhooks and point them at an n8n Webhook node. Each delivery has a unique id, so dedupe on it.

Virlo webhook events for n8n
EventFires when
content_research_agent.run.completedA marketing agent run finishes
content_research_agent.event.detectedA recurring agent spots a breaking story in its topic
tracking.outlier_video.detectedA tracked creator posts a video with over 3 times their median views
tracking.cycle.completedA tracked creator or video gets its scheduled check
trends.daily.completedThe global Topic Trends list updates
satellite.lookup.completedA creator, sound, hashtag or video lookup finishes

Your Webhook node should answer with a 2xx within 30 seconds; Virlo retries failed deliveries on a schedule.

What jobs can an n8n marketing agent do with Virlo?

Use these as the AI Agent prompt. Replace the brackets.

  • Monday digest

    Use Virlo to list this week's top 5 trends to copy in [your niche], with stage and one example video each, formatted for Slack.

  • Outlier alert

    A tracked creator just posted an outlier: {{ $json.data }}. Explain why the video worked and suggest one version for [your brand].

  • Sound log

    Find the 10 sounds trending on Instagram Reels this week and return them as rows: title, artist, Reels in 7 days.

  • Competitor recap

    Look up @[competitor] on TikTok and Instagram and summarise their best 3 videos of the week.

  • Hook feed

    Pull 20 proven hooks in [your niche] from Virlo and return them as JSON with the source video link.

  • Client report

    Write a monthly summary of what changed on TikTok and Instagram in [client niche], with 5 links, for an email to the client.

MCP Client Tool vs MCP Server Trigger: which n8n node is this?

n8n has two MCP nodes that work in opposite directions.

MCP Client Tool (this page)

Lets an n8n AI Agent use an outside server's tools. This is where Virlo goes.

MCP Server Trigger

Turns an n8n workflow into an MCP server that other AI apps call. Not needed for Virlo.

Virlo MCP server

The hosted server every Virlo guide uses, with configs for Claude, Cursor, VS Code and more.

What are the limits?

  • Virlo reads public TikTok and Instagram data. Your workflow can research and report with it, not post.
  • Long research jobs, such as a new marketing agent, finish in the background. Use the agent-run webhook rather than waiting inside one execution.
  • Each team can have 5 active Virlo webhooks. Point one at an n8n router workflow if you need more destinations.
  • Store the key as an n8n credential (Bearer Auth), never as plain text in a node.
  • Virlo plans: pricing.

Frequently asked questions

How do I build a marketing agent in n8n?

Use an AI Agent node with a chat model and give it tools. For social media research, attach an MCP Client Tool pointed at Virlo, add a Schedule Trigger in front and a Slack, Gmail or Sheets node after. The agent then researches TikTok and Instagram on a timer and sends you the result.

How do I connect an MCP server to n8n?

Attach an MCP Client Tool node to your AI Agent. Set Endpoint to the server URL (for Virlo, https://dev.virlo.ai/api/mcp/mcp), Server Transport to HTTP Streamable and Authentication to Bearer Auth with your key. The agent can then call the server's tools.

Can n8n get TikTok data?

Yes, through Virlo. Use the MCP Client Tool for agent-driven research, or the HTTP Request node to call Virlo API endpoints at api.virlo.ai/v1 with a bearer key. Both return public TikTok data: trends to copy, viral videos, sounds, hashtags, creators and transcripts.

Can n8n automate Instagram research?

Yes. With Virlo, an n8n workflow can pull Reels on a topic ranked by Virality Score, trending and breakout Reels sounds, Instagram hashtags and creator lookups, then post the summary to Slack or log it to Google Sheets on a schedule.

Can Virlo trigger an n8n workflow?

Yes. Create a Webhook node in n8n, then register its URL with Virlo's POST /v1/webhooks endpoint and the events you want, such as tracking.outlier_video.detected. Virlo sends each event to n8n as it happens, with retries if a delivery fails.

Should I use the MCP Client Tool or the HTTP Request node?

Use the MCP Client Tool when an AI Agent should decide what to look up from a plain-English job. Use HTTP Request when you want the same endpoint every time, such as this week's trends into a sheet. Many workflows use both.

Is Virlo an n8n community node?

Virlo connects through nodes n8n already ships: the MCP Client Tool, HTTP Request and Webhook. There is nothing extra to install on your n8n instance, cloud or self-hosted.

Can an n8n workflow post to TikTok with Virlo?

Not through Virlo, which is read-only research. Your workflow can hand Virlo's findings to whatever posting tool you already use in n8n.

Give your n8n agent a social media brain

One MCP Client Tool connects Virlo. Schedule it and get the report every Monday.