Scheduled AI-answer monitoring in n8n
You don’t need code to run a daily AI-visibility check. This n8n workflow submits a prompt set every morning and lands results in a table — enough for a real dashboard.
The pieces
- Schedule Trigger — daily at 07:00.
- AnswerLine node (
n8n-nodes-answerline) — submits each prompt as an async task with a webhook URL. - Webhook — receives
task.completedevents with full results. - Google Sheets / Postgres node — appends
{date, prompt, engine, market, mentioned, citations}rows.
Why async + webhook
Sync calls hold an open HTTP connection while the answer is captured — fine for a button click, wrong for a 200-prompt batch. Queue the tasks, close the loop with webhooks, and results arrive whenever they’re ready. Set idempotencyKey to {{$json.prompt}}-{{$now}} so retries never double-charge.
The flow
- Schedule Trigger → a small Code node emits your prompt list (prompt, engine, country).
- AnswerLine node → Create task per row.
- On
task.completed, a Function node extractsresult.text, checks for your brand name, and counts your domain inresult.sources. - Append the row. Chart it however you like.
Add a filter node for alerts: “brand mentioned = false on a prompt where we were mentioned last week” → Slack.
Beyond monitoring
The same node is the data source for richer automations: enrich a lead list with “does ChatGPT recommend this company”, feed a weekly digest to a newsletter, or pipe searchQueries[] into a keyword-research sheet. See the n8n integration page for install steps.