Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Document n8n integration.

sathwikshetty33a66e4df79862
diff --git a/static/images/integrations/bot_avatars/n8n.png b/static/images/integrations/bot_avatars/n8n.png
new file mode 100644
index 00000000000..4923767506b
Binary files /dev/null and b/static/images/integrations/bot_avatars/n8n.png differ
diff --git a/static/images/integrations/logos/n8n.svg b/static/images/integrations/logos/n8n.svg
new file mode 100644
index 00000000000..1e5725d6686
--- /dev/null
+++ b/static/images/integrations/logos/n8n.svg
@@ -0,0 +1,3 @@
+<svg width="306" height="160" viewBox="0 0 306 160" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" d="M272 64C257.089 64 244.561 53.8018 241.008 40H204.331C196.51 40 189.835 45.6546 188.549 53.3696L187.234 61.2608C185.985 68.7531 182.195 75.2738 176.835 80C182.195 84.7262 185.985 91.2469 187.234 98.7392L188.549 106.63C189.835 114.345 196.51 120 204.331 120H209.008C212.561 106.198 225.089 96 240 96C257.673 96 272 110.327 272 128C272 145.673 257.673 160 240 160C225.089 160 212.56 149.802 209.008 136H204.331C188.688 136 175.338 124.691 172.766 109.261L171.451 101.37C170.165 93.6546 163.49 88 155.669 88H142.992C139.44 101.802 126.911 112 112 112C97.0893 112 84.5605 101.802 81.0081 88H62.9919C59.4395 101.802 46.9107 112 32 112C14.3269 112 0 97.6731 0 80C0 62.3269 14.3269 48 32 48C46.9107 48 59.4395 58.1982 62.9919 72H81.0081C84.5605 58.1982 97.0893 48 112 48C126.911 48 139.44 58.1982 142.992 72H155.669C163.49 72 170.165 66.3454 171.451 58.6304L172.766 50.7392C175.338 35.3092 188.688 24 204.331 24L241.008 24C244.56 10.1982 257.089 0 272 0C289.673 0 304 14.3269 304 32C304 49.6731 289.673 64 272 64ZM272 48C280.837 48 288 40.8366 288 32C288 23.1634 280.837 16 272 16C263.163 16 256 23.1634 256 32C256 40.8366 263.163 48 272 48ZM32 96C40.8366 96 48 88.8366 48 80C48 71.1634 40.8366 64 32 64C23.1634 64 16 71.1634 16 80C16 88.8366 23.1634 96 32 96ZM128 80C128 88.8366 120.837 96 112 96C103.163 96 96 88.8366 96 80C96 71.1634 103.163 64 112 64C120.837 64 128 71.1634 128 80ZM256 128C256 136.837 248.837 144 240 144C231.163 144 224 136.837 224 128C224 119.163 231.163 112 240 112C248.837 112 256 119.163 256 128Z" fill="#EA4B71"/>
+</svg>
diff --git a/templates/zerver/integrations/n8n.md b/templates/zerver/integrations/n8n.md
new file mode 100644
index 00000000000..ec446502bb0
--- /dev/null
+++ b/templates/zerver/integrations/n8n.md
@@ -0,0 +1,39 @@
+# Zulip n8n integration
+
+n8n supports integrations with
+[hundreds of popular products](https://n8n.io/integrations/). Use the Zulip
+action node in n8n workflows to send notifications, manage messages, users,
+and channels.
+
+{start_tabs}
+
+1. {!create-a-generic-bot.md!}
+
+1. [Download the `zuliprc` file](/help/manage-a-bot#download-zuliprc-configuration-file)
+ for the bot you created above.
+
+1. Open your n8n workflow, and add the **Zulip** action node.
+
+1. Click **Set up credential**, and enter the **URL** for your Zulip
+ organization, the bot's **email address**, and **API key** from the
+ `zuliprc` file you downloaded above. Click **Save**, and close the
+ credentials modal.
+
+1. Under **Resource**, select the Zulip resource type (message, user, or
+ channel). Under **Operation**, select the action to perform on the
+ selected resource, and fill out the corresponding parameters.
+
+1. Click **Execute step** or **Execute workflow** to test it.
+
+{end_tabs}
+
+You're done! You should now be able to interact with your Zulip organization
+via n8n workflows.
+
+### Related documentation
+
+- [n8n Zulip integration][n8n-zulip]
+- [Zulip action node][zulip-node]
+
+[n8n-zulip]: https://n8n.io/integrations/zulip/
+[zulip-node]: https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.zulip/
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py
index a90c530f7a2..411f0962848 100644
--- a/zerver/lib/integrations.py
+++ b/zerver/lib/integrations.py
@@ -1024,6 +1024,7 @@ PLUGIN_INTEGRATIONS: list[Integration] = [
["continuous-integration"],
[FixturelessScreenshotConfigOptions(image_name="004.png")],
),
+ Integration("n8n", ["meta-integration"], display_name="n8n"),
Integration("nextcloud", ["productivity"]),
Integration("onyx", ["productivity"], logo="images/integrations/logos/onyx.png"),
]
@@ -1162,7 +1163,7 @@ INTEGRATIONS_MISSING_SCREENSHOT_CONFIG = (
# Add integrations that are not meant to have example screenshots here
INTEGRATIONS_WITHOUT_SCREENSHOTS = (
# Integration frameworks
- {"ifttt", "slack_incoming", "zapier"}
+ {"ifttt", "n8n", "slack_incoming", "zapier"}
# Outgoing integrations
| {"email", "onyx"}
# Video call integrations