# n8n

> Install the Zenhalab nodes in n8n to start workflows on events, verified, and act in the apps, also as an AI agent tool.

The **n8n-nodes-zenhalab** package adds two nodes to n8n: **Zenhalab Trigger**, which starts a workflow when an event happens, and **Zenhalab**, which acts in the apps (and works as a tool for n8n's AI agents).

## Install {#install}

In n8n, open **Settings → Community nodes → Install**, enter `n8n-nodes-zenhalab` and confirm.

## Connect your account {#connect}

1. [Create an API key](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/api-keys#create) with **Full access** (or just the scopes your workflows need).
   A personal key works in Nehenoi, Techauka and Zanemotau; a workspace's key in that Ñomongeta workspace.
2. In n8n, add a **Zenhalab API** credential and paste the key. Leave the base URL as it is.
3. n8n tests the credential with the API's connection test.

## Zenhalab Trigger {#trigger}

Pick an event. Activating the workflow subscribes its webhook to that event; deactivating removes it. The trigger **checks the signature** of every delivery with the secret it received when it subscribed, and refuses anything else, so a forged request never starts your workflow.

### Zenhalab Trigger: events {#n8n-triggers}

| Event in n8n | Event | App |
| --- | --- | --- |
| Nehenoi: New Invitation | [`nehenoi.event.created`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-event-created) | Nehenoi |
| Nehenoi: Invitation Published | [`nehenoi.event.published`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-event-published) | Nehenoi |
| Nehenoi: Invitation Unpublished | [`nehenoi.event.unpublished`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-event-unpublished) | Nehenoi |
| Nehenoi: Invitation Deleted | [`nehenoi.event.deleted`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-event-deleted) | Nehenoi |
| Nehenoi: New RSVP | [`nehenoi.rsvp.submitted`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-rsvp-submitted) | Nehenoi |
| Nehenoi: RSVP Updated | [`nehenoi.rsvp.updated`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-rsvp-updated) | Nehenoi |
| Nehenoi: New Guest | [`nehenoi.guest.added`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-guest-added) | Nehenoi |
| Nehenoi: Guest Checked In | [`nehenoi.checkin.recorded`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-checkin-recorded) | Nehenoi |
| Nehenoi: New Gift | [`nehenoi.gift.purchased`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-gift-purchased) | Nehenoi |
| Nehenoi: New Guest Photo | [`nehenoi.photo.uploaded`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nehenoi-photo-uploaded) | Nehenoi |
| Techauka: New QR Code | [`techauka.qr.created`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#techauka-qr-created) | Techauka |
| Techauka: QR Code Updated | [`techauka.qr.updated`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#techauka-qr-updated) | Techauka |
| Techauka: QR Code Scanned | [`techauka.qr.scanned`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#techauka-qr-scanned) | Techauka |
| Zanemotau: New Dedication | [`zanemotau.dedication.created`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#zanemotau-dedication-created) | Zanemotau |
| Zanemotau: Dedication Published | [`zanemotau.dedication.published`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#zanemotau-dedication-published) | Zanemotau |
| Zanemotau: New Quiz Answer | [`zanemotau.quiz.response_submitted`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#zanemotau-quiz-response-submitted) | Zanemotau |
| Zanemotau: Questionnaire Answered | [`zanemotau.questionnaire.response_submitted`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#zanemotau-questionnaire-response-submitted) | Zanemotau |
| Ñomongeta: New Conversation | [`nomongeta.conversation.started`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-conversation-started) | Ñomongeta |
| Ñomongeta: Conversation Closed | [`nomongeta.conversation.closed`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-conversation-closed) | Ñomongeta |
| Ñomongeta: New Incoming Message | [`nomongeta.message.received`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-message-received) | Ñomongeta |
| Ñomongeta: New Outgoing Message | [`nomongeta.message.sent`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-message-sent) | Ñomongeta |
| Ñomongeta: Handoff Requested | [`nomongeta.handoff.requested`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-handoff-requested) | Ñomongeta |
| Ñomongeta: Handoff Assigned | [`nomongeta.handoff.assigned`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-handoff-assigned) | Ñomongeta |
| Ñomongeta: Flow Run Completed | [`nomongeta.flow.run.completed`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-flow-run-completed) | Ñomongeta |
| Ñomongeta: Flow Run Failed | [`nomongeta.flow.run.failed`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-flow-run-failed) | Ñomongeta |
| Ñomongeta: New Contact | [`nomongeta.contact.created`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-contact-created) | Ñomongeta |
| Ñomongeta: Contact Updated | [`nomongeta.contact.updated`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-contact-updated) | Ñomongeta |
| Ñomongeta: New Lead Captured | [`nomongeta.lead.captured`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#nomongeta-lead-captured) | Ñomongeta |
| Account: New Subscription | [`account.subscription.created`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-subscription-created) | Ñomongeta |
| Account: Subscription Updated | [`account.subscription.updated`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-subscription-updated) | Ñomongeta |
| Account: Subscription Canceled | [`account.subscription.canceled`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-subscription-canceled) | Ñomongeta |
| Account: New Payment | [`account.payment.succeeded`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-payment-succeeded) | Nehenoi, Techauka, Zanemotau, Ñomongeta |
| Account: Payment Failed | [`account.payment.failed`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-payment-failed) | Ñomongeta |
| Account: New Referral | [`account.referral.created`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-referral-created) | Nehenoi, Techauka, Zanemotau |
| Account: Referral Purchased | [`account.referral.qualified`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-referral-qualified) | Nehenoi, Techauka, Zanemotau |
| Account: Referral Reward Earned | [`account.referral.rewarded`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-referral-rewarded) | Nehenoi, Techauka, Zanemotau |
| Account: Referral Not Rewarded | [`account.referral.rejected`](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/events#account-referral-rejected) | Nehenoi, Techauka, Zanemotau |

### Zenhalab node: operations {#n8n-actions}

| Resource › operation | What it does | Scope |
| --- | --- | --- |
| Nehenoi › Create Invitation | Creates an invitation from an occasion's template, as a draft unless it's published at once. | `nehenoi:write` |
| Nehenoi › Add Guest | Adds a guest to an invitation's guest list. | `nehenoi:write` |
| Techauka › Create QR Code | Creates a dynamic QR code that leads to a web address. | `techauka:write` |
| Techauka › Change QR Code Destination | Changes where a QR code leads, or its name. | `techauka:write` |
| Ñomongeta › Create or Update Contact | Adds a contact, or updates the one with that address (fields are the workspace's contact variables). | `nomongeta:write` |
| Ñomongeta › Find Contact (search) | Finds a contact by address (phone number or e-mail). | `nomongeta:read` |
| Ñomongeta › Start WhatsApp Conversation | Starts a WhatsApp conversation with an approved template, to a contact who opted in. | `nomongeta:write` |
| Ñomongeta › Send Message | Sends a message in a conversation (free text inside WhatsApp's 24-hour window, a template any time). | `nomongeta:write` |
| Ñomongeta › Start Flow | Starts an active flow in a conversation. | `nomongeta:write` |
| Ñomongeta › Add Knowledge Document | Adds a document to an agent's knowledge. | `nomongeta:write` |

Each output item is the event: `id` (skip repeats with it), `type`, `timestamp`, `subject` and `data`.

## Good to know {#good-to-know}

- Each active trigger is one [REST hook](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/rest-hooks): it shows on the Integrations page and counts toward the endpoint limit.
- If the hook was turned off (deliveries kept failing, or its secret was rotated on the Integrations page), deactivate and activate the workflow: it replaces the hook with a fresh one. A hook you paused on the page stays paused.
- Your n8n must be reachable from the internet over HTTPS for triggers to receive events.

## Without the package {#webhook-node}

The built-in **Webhook** node works too: [add its production URL as a webhook](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/webhooks#add), and [verify the signature](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/verify-signatures) in a **Code** node. For actions, use the **HTTP Request** node against the [API](https://www.zenhalab.com/www/zenhalab/en/developers/integrations/api) with your key.
