# Source: https://upstash.com/docs/redis/integrations/n8n.md

# Source: https://upstash.com/docs/qstash/integrations/n8n.md

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

# n8n with QStash

Leverage your n8n workflow with Upstash Qstash, here is how you can make those requests using HTTP Request node.

### Step 1: Set Up an n8n Project

1. Go to [https://n8n.io](https://n8n.io) and create a new project
2. Create a Trigger as Webhook with default settings, this will be our entry point.
3. Create a HTTP Request Node
   <img src="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=e505e6282963f1f865da419500a32ce4" data-og-width="1940" width="1940" data-og-height="1106" height="1106" data-path="img/n8n/qstash-http.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?w=280&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=bd445fb8cec48f72eb794b0712fcafa5 280w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?w=560&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=d9d1d136ca766c3f2772c6b18851e224 560w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?w=840&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=5a7c9dfa9b55fed8c31d76bee97e9e06 840w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?w=1100&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=289f56dada160fdc5939851140b74ce8 1100w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?w=1650&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=e64bbe650b7779b08abb82109cbdb6f7 1650w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-http.png?w=2500&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=e21dd591f834cf97f45cac1e369c778e 2500w" />

***

### Step 2: Import QStash Configurations to HTTP Node

1. Go to Upstash Console and open QStash Request Builder Tab.
2. Fill out the fields to create an QStash Request. (Publish, Enqueue, Schedule)
   <img src="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=e49f1750a82b10600a8099491ef7cec7" data-og-width="1940" width="1940" data-og-height="1186" height="1186" data-path="img/n8n/qstash-request-builder.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?w=280&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=b3ffd35a9947d10cce948319e2e5795a 280w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?w=560&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=70922c48cff83f3d3c5094196f12198d 560w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?w=840&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=36aad1fce07b0336ff6cab700bc4c64d 840w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?w=1100&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=81a46ed684c1186e4581a3753ebd650b 1100w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?w=1650&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=7a4363ddf645e59cf4a61927dfc88b38 1650w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-request-builder.png?w=2500&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=e372fe4811da5d2eed732219cc879000 2500w" />
3. Copy the cURL snippet created for you, representing your request.
   <img src="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=3d15b621d1485e7b0ef2b7b5523fdde0" data-og-width="1940" width="1940" data-og-height="1184" height="1184" data-path="img/n8n/qstash-curl.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?w=280&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=5d7df29d904d7d86015c34fd436a2a32 280w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?w=560&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=79e437282d780c9748c76e1d9e834d13 560w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?w=840&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=9fe55118cf0dd843a097ea488acc914c 840w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?w=1100&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=5d84ca81093404bd4362383c3ade406f 1100w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?w=1650&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=b9d21d1be7832a781132fba7435f0f7e 1650w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-curl.png?w=2500&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=144c4d386dc689a66c02c168b032ca5d 2500w" />
4. Back to the n8n, in HTTP Request Parameters tab, use import cURL.
   <img src="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=7474c42107e2f5f739d5927be43fa8f8" data-og-width="1940" width="1940" data-og-height="1182" height="1182" data-path="img/n8n/qstash-import-button.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?w=280&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=7f2e4845d8bbf4d84396dddeab086fa7 280w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?w=560&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=77ebaafbefb445130356bf896f1c98da 560w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?w=840&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=fd0b1a5c6fe97338381092560a65f095 840w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?w=1100&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=23a8543465dd3b8b9c55a0006d595693 1100w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?w=1650&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=bfaf86dea0b13e0da303b8b6e52de702 1650w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import-button.png?w=2500&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=07aa93d7edb0d60a890cac6d2d87f2f6 2500w" />
5. Paste the cURL snippet that you copied in the console, and let n8n to fill out the form for you.
   <img src="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=556482904e5bcdb5c2c5e58fdbf19793" data-og-width="1940" width="1940" data-og-height="1090" height="1090" data-path="img/n8n/qstash-import.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?w=280&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=777448123b26122d81aa4887212a177d 280w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?w=560&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=a93828b17ac4f7c5589a30a1ceca2ee2 560w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?w=840&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=09bcf959c21764bb9f98173f626bd122 840w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?w=1100&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=1637926c6f2dea07245f779dc2060e31 1100w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?w=1650&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=bfa4575fd56aa6d095158c1bf186d196 1650w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-import.png?w=2500&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=8e32280b91885d59a7440daebf54d7a0 2500w" />

***

### Step 3: Test the Workflow

1. Execute workflow.
2. Visit the Webhook URL.
3. That's it! You can check the logs in the Qstash Console to confirm your QStash Request is working.
   <img src="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=76d88d4ec0176f8cbb124cc50fc7bd0d" data-og-width="1940" width="1940" data-og-height="1078" height="1078" data-path="img/n8n/qstash-logs.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?w=280&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=1ad51a2f2d404487ab7595d07dc1a43d 280w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?w=560&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=15fde1375e8b3cb74d1ac6f21eed8aab 560w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?w=840&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=f4386d0b5377b119fb0990f1336171c3 840w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?w=1100&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=051df821a7614396a8fd8240527b7352 1100w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?w=1650&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=9a26ff0dd485abf61804a6a8b3b5eadb 1650w, https://mintcdn.com/upstash/6gcRj3LcBRmprTmw/img/n8n/qstash-logs.png?w=2500&fit=max&auto=format&n=6gcRj3LcBRmprTmw&q=85&s=6a261f05959055d1dbf0525c477ea08a 2500w" />