# Connecting n8n

Source: https://kirora.io/docs/api/n8n

The Kirora and Kirora Trigger nodes for n8n workflows.

Kirora's n8n nodes connect Kirora to your n8n workflows, on n8n Cloud or your own n8n:
start a workflow when something happens in Kirora, or have one create contacts, track
events and send transactional email in Kirora.

> The nodes (`n8n-nodes-kirora`) are published once Kirora launches publicly.

## Connect

1. In Kirora, open **Integrations → n8n** and create a key. It has the **Automation**
   permissions: contacts, events, lists, transactional email and webhooks.
2. In n8n, add a **Kirora** credential and paste the key. n8n checks it.

## Nodes

- **Kirora Trigger** starts a workflow the moment something happens: a new contact, an
  unsubscribe, a form submitted, an email or push message sent, opened or clicked, or an
  email delivered or bounced. It subscribes a signed webhook and drops any delivery Kirora
  did not sign.
- **Kirora** acts: create or update a contact, track an event, add a contact to a list,
  send a transactional email, or find a contact by email.

- **Consent** needs how they agreed: granting consent asks for the legal basis and where
  and how they agreed, and Kirora refuses a grant without them.
- **Idempotency key**: left empty, the node uses the execution, node, run and item, so a
  retry within an execution repeats nothing. Map an order ID or similar to cover replays.

## Pause and disconnect

On **Integrations → n8n**, **Pause** holds the n8n key and its triggers without deleting
anything: nodes calling Kirora get 403 `INTEGRATION_PAUSED`, and your triggers receive
no events until you resume. Events from the pause are not sent later. **Disconnect**
revokes the key and removes its triggers' webhooks.

## Requirements

- **Plan**: the integrations feature (Starter and above).
- **Role**: workspace admins and developers create the key.

## Next steps

- [Webhooks](https://kirora.io/docs/api/webhooks): the events behind each trigger and their payloads
- [Idempotency](https://kirora.io/docs/api/reference/idempotency): how a repeated action is recognised