n8n-nodes-ansvisor community package.
What the package provides
- Ansvisor Trigger receives a brand’s webhook events and verifies the configured shared secret. For
content_draft.sent, it also checks the HMAC-SHA256 signature over the raw request body. - Ansvisor reads brands, visibility summaries, visibility trends, citations and AI traffic through the read-only Metrics API.
GET requests. Your API key is subject to the same brand access as the person who created it.
Install the community node
After the package is published to npm, open Settings → Community Nodes in n8n, choose Install, and entern8n-nodes-ansvisor. Restart n8n if your installation asks you to.
For local development, install the package from integrations/n8n in a custom-node directory.
Connect the Metrics API
- In Ansvisor, open Settings → MCP & API Keys and create an API key. Copy it when it is shown; it is only displayed once.
- In n8n, create an Ansvisor API credential.
- Paste the
ans_key into API Key. - Keep Base URL as
https://app.ansvisor.comfor Ansvisor Cloud. For self-hosted Ansvisor, enter the origin of your web app. - Save the credential and use the credential test to check
GET /api/v1/whoami.
Authorization: Bearer. Do not put it in node parameters or expressions.
The node exposes these read-only operations:
For metrics, select a brand ID returned by Brand → Get Many. Optional date filters use
YYYY-MM-DD.
Receive webhooks
- In Ansvisor, open the brand’s Content → Configure Webhook settings.
- Set a webhook secret and enable the events the workflow should receive.
- In n8n, add Ansvisor Trigger and create an Ansvisor Webhook Secret credential containing that brand’s secret.
- Activate the workflow and copy its Production URL.
- Paste that URL into the same brand’s Ansvisor webhook settings and save.
Signature checks
Every configured webhook request carriesX-Webhook-Secret. The trigger compares it to the credential using a constant-time comparison.
The content_draft.sent event additionally carries X-Ansvisor-Signature: sha256=<hex>. The trigger reads the original raw request body and verifies HMAC-SHA256 with the same brand secret before parsing the event into workflow data. A missing or invalid shared secret, or a missing or invalid content-draft signature, receives HTTP 401 and does not start the workflow.
Other documented events use the shared-secret header and do not require the additional HMAC header:
opportunity.sentdaily_pulse.createdaction_task.sentwebhook.test