StudyVisuallyStart studying
Part 08 · n8n · Card 11 of 13

n8n as the trigger

n8n calls the agent: a GitHub webhook, a daily 9am digest or a new support email starts an agent run.

Last updated

Analogy

A cron job and a webhook receiver that both forward to your API.

In an agent

Example: PR opened, n8n sends the diff to your agent, the agent returns a typed review, n8n posts it to Slack.

Practice

Flashcards

  • Interview: where does n8n fit next to an agent?Triggers and integrations. Reasoning stays in code; plumbing stays in n8n.

Interview questions

  • Where does n8n fit?
    • Triggers and integrations.
    • n8n starts the agent on webhooks or schedules.
    • The agent calls n8n webhooks as tools for Slack and Jira actions.
    • Reasoning stays in code; plumbing stays in n8n.

Questions people ask

How do I trigger an AI agent from n8n?

Make a workflow with a trigger, such as a GitHub webhook or a schedule, followed by an HTTP Request node that posts the event data to your agent's API. Then add nodes that use the response. Example: a pull request opens, n8n sends the diff, and posts the agent's review to Slack.

Why use n8n to start agent runs?

n8n already speaks to hundreds of apps and handles webhooks, schedules and retries. Your agent only needs one clean API endpoint. That keeps event and app plumbing out of your agent code, and non-developers can change when the agent runs without touching it.