---
title: "n8n"
description: "Otomatize Quire ak n8n ak ne kominotè Quire a."
image: "https://docs.quirelms.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.quirelms.com/ht/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n

<span id="n8n"></span>

Ne kominotè Quire a pou n8n ba w yon ne aksyon pou REST API a ak yon ne deklanchè ki kòmanse yon flux travay lè yon bagay rive nan Quire. Li pa gen depandans pandan egzekisyon, kidonk sèl bagay li ajoute nan enstans n8n ou a se li menm.

## Enstale <!--quire:install-->

Nan n8n, ouvri **Settings**, apre sa **Community nodes**, chwazi **Install** epi antre `@quire/n8n-node`. Sou n8n ou òganize tèt ou, ou kapab pito kouri `npm install @quire/n8n-node` nan dosye itilizatè n8n nan, epi rekòmanse li.

## Konekte <!--quire:connect-->

<figure class="quire-shot" lang="en" dir="ltr"><img src="/screenshots/admin-api-keys.webp" alt="The API keys page with a key named for an n8n automation." width="944" height="700" loading="lazy" decoding="async"><figcaption>Create a key at /admin/integrations/api-keys and paste it into the Quire credential in n8n.</figcaption></figure>

Kreye yon kalifikatif. Yo ofri de kalite:

- **Quire API Key**: **Base URL** se adrès òganizasyon w lan san tirè oblik nan fen, tankou `https://acme.quirelms.com`. **API Key** se kle yon administratè kreye nan `/admin/integrations/api-keys`, ki kòmanse ak `qk_live_`. Bay li sèlman scope flux travay la bezwen yo.
- **Quire OAuth2**: pou flux travay ki dwe aji kòm yon moun presi. Anrejistre yon client OAuth nan `/admin/integrations/oauth-clients` avèk adrès redireksyon n8n nan (n8n montre li sou kalifikatif la), epi antre ID, sekrè ak scope client lan.

## Aksyon <!--quire:actions-->

Ne **Quire** a kouvri itilizatè, kou, enskripsyon, gwoup, pwogrè, nòt, sètifika, travay remèt, tantativ egzamen, pwogram, kòmann, imèl ak òganizasyon. Chak ofri list, get, create, update ak delete lè API a pèmèt sa, ansanm ak upsert pa ID ekstèn; se sa ou bezwen pou senkronizasyon: kouri menm flux travay la de fwa pa kreye kopi anplis.

Operasyon yo pwodui apati dokiman OpenAPI Quire a, kidonk yo mache egzakteman tankou [referans API a](https://docs.quirelms.com/api/) pou chak chan. Nenpòt operasyon kapab sèvi kòm zouti pou yon ajan IA n8n tou; deskripsyon li soti nan referans API a.

Pa default, lis yo retounen chak paj. Fèmen **Return All** epi fikse yon limit pou òganizasyon ki gwo.

## Deklanche <!--quire:trigger-->

Ajoute ne **Quire Trigger** la, chwazi kalifikatif la epi chwazi **Events**: yon evènman pa non tankou `enrolment.created`, tout yon domèn tankou `course.*`, oswa tout evènman yo. Lè w aktive flux travay la, ne a kreye yon abònman webhook nan Quire pou adrès n8n nan; lè w dezaktive li, abònman an retire.

Yo verifye siyati chak livrezon anvan flux travay la kòmanse. Yo jete yon livrezon ki pa verifye epi bay yon erè ne, kidonk yon demann kontrefè pa ka lanse flux travay ou. Chan `data` evènman an gen idantifyan; ajoute yon ne Quire apre deklanchè a pou chèche dosye konplè a.

## Egzanp: imèl byenveni lè yon moun enskri <!--quire:example-welcome-email-on-enrolment-->

1. **Quire Trigger** sou `enrolment.created`.
2. Ne **Quire**, resous **Users**, operasyon **Get**, ak ID itilizatè `{{$json.data.user_id}}`.
3. Ne **Quire**, resous **Courses**, operasyon **Get**, ak `{{$json.data.course_id}}`.
4. Ne imèl oswa chat pa w la, avèk non moun nan ak tit kou a.

## Rezoud pwoblèm <!--quire:troubleshooting-->

- **401** nan chak apèl: Base URL ak kle a soti nan òganizasyon diferan, oswa yo revoke kle a.
- **403** nan yon operasyon: kle a pa gen scope sa a. Ajoute li nan `/admin/integrations/api-keys`.
- Deklanche a pa janm lanse: adrès webhook n8n nan dwe aksesib nan Quire sou HTTPS. Verifye jounal livrezon abònman an nan `/admin/webhooks`.

Source: https://docs.quirelms.com/ht/integrations/n8n/index.mdx
