Blog · Topic
Tutorials
18 articles
Run your own AI citation study — the honest methodology
Most AI-search statistics online are borrowed or stale. How to measure citation rates, trigger rates and source mixes yourself, with a defensible method.
Handle API errors like a pipeline, not a script
429s, 402s, timeouts and 5xx each mean something different. The retry policy that respects idempotency — and the one that double-charges you.
Ask ChatGPT from inside your editor — MCP setup for Cursor and Claude
The hosted MCP server turns every engine into a tool your AI editor can call mid-session. One-line setup for Claude Code, Cursor and any MCP client.
Design a webhook receiver that survives outages
Result delivery over webhooks means your endpoint's downtime is your problem to absorb. Receiver patterns that lose nothing.
Idempotency keys are your retry safety net
Retries are mandatory for async pipelines — and dangerous without idempotency. How keys prevent duplicate tasks and double charges.
Give a LangChain agent live AI answers as a tool
The LangChain integration turns every engine into a tool call — your agent can ask ChatGPT, search Google or check News mid-reasoning. Setup in Python and JS.
Verify webhook signatures before trusting task results
Webhook endpoints are public by design — verify the signature, timestamp and event type before storing results. Working verification code in Python and Node.
AI-answer alerts without code — a Zapier setup
Wire AnswerLine into Zapier so a Slack message or sheet row appears every time a monitored AI answer changes — no backend required.
Capture Google AI Mode answers with an API
AI Mode is Google's full conversational answer surface — distinct from AI Overview. How to get its answers, sources and product blocks as JSON.
Monitor Microsoft Copilot answers with an API
Copilot's grounded answers include sources, shopping cards and rich media. How to get them as structured JSON, geo-targeted, sync or async.
Monitor Google Gemini answers with an API
Gemini's grounded answers cite Google's index directly. Get its answer text, sources and search queries as JSON — per country, sync or in batches.
Monitor Grok answers with an API
Grok pulls from X and the live web — a different evidence base than every other engine. How to capture its answers, citations and post sources as JSON.
Turn Google results into typed data, not HTML scraping
Organic results, ads, People Also Ask, local pack, AI Overview — one Google Search call returns every block as typed JSON, geo-targeted per country and ZIP.
Getting Google News data programmatically
Google News has no official API for results. How to get headlines, clusters and sources as JSON — per country, language and device — and what to use it for.
Monitor Perplexity answers with an API
Get Perplexity's answer text, citations, related queries and media cards as JSON — sync or async — with Python and TypeScript examples.
Scheduled AI-answer monitoring in n8n
A no-code pipeline — scheduled prompts, async tasks, webhook results into a sheet or database — built with the AnswerLine n8n node.
Building a rank-tracking pipeline for AI answers with batches
Submit a prompt set as batches, collect results by webhook, and turn cited sources into a rank per prompt, market and day.
Tracking Google AI Overviews at scale with async batches and webhooks
Submit a keyword list as GOOGLE task batches with the AI Overview requested, collect results by webhook, and read the SDKs' typed response.