# n8n
Open source Workflow automation software. Enables creating workflows automating different tasks, connecting to different services, pulling and pushing information automatically, etc.
Workflows are created on an infinite canvas with nodes (blocks) and links.
n8n has hundreds of built-in nodes, making it easy to perform actions in various platforms (e.g., add to google drive, create Ghost post, add comment to TikTok, add row to Supabase table, etc), AI integrations, and many (1K+) [community-provided nodes](https://www.npmjs.com/search?q=keywords%3An8n-community-node-package).
There's a SaaS (~$20/month) and a free self-hosted version that can be used with npm or Docker.
## Workflows
Workflows can be triggered manually, through Webhooks (assuming the instance is reachable from the Web), on a schedule (CRON), file/folder changes, telegram messages, emails, etc.
They can also integrate logic through if/else or switch blocks.
## Credentials
To interact with tools and services, workflows use credentials. Those are added/stored separately from the workflows. It's possible to add credentials for all services (e.g., X, Telegram, YouTube, Anthropic, GitHub, etc)
## Templates
There are many community workflow templates: https://n8n.io/workflows/
## Variables (paid feature)
It's possible to define variables that can be reused across workflows.
## Backup and restore
Workflows can easily be exported to JSON and there are workflow templates that fully automate nightly backups of workflows and credentials
## Local use with npm
- Run: `npx n8n`
- Install `npm install --global n8n`
- Update: `npm update --global n8n`
## Settings
- Personal
- 2FA
- Users (paid feature)
- n8n API: possibility to create API keys to integrate other tools with n8n through its API
- External Secrets (paid feature)
- Environments (paid feature)
- SSO (paid feature)
- LDAP (paid feature)
- Log Streaming (paid feature)
## References
- Official website: https://n8n.io
- Documentation: https://docs.n8n.io
- npm package: https://www.npmjs.com/package/n8n
- Comparison between [[Zapier]], Make.com and n8n: https://www.youtube.com/watch?v=kAgWNs-9-Y4
- Workflows
- 1K+ reusable templates: https://n8n.io/workflows/
- Community nodes: https://www.npmjs.com/search?q=keywords%3An8n-community-node-package
- Videos
- Overview by [[Liz Rowe]]: https://www.youtube.com/watch?v=roSKVNN1aDQ
- Overview and AI Integration guide by [[Matt Williams]]: https://www.youtube.com/watch?v=VDuA5xbkEjo
- Free course (playlist) by Maxime Poulsen: https://www.youtube.com/watch?v=4BVTkqbn_tY&list=PLlET0GsrLUL59YbxstZE71WszP3pVnZfI
- n8n drawbacks: https://www.youtube.com/watch?v=95X2AUnMj7Q
- Tutorial about using n8n to build AI "agents": https://www.youtube.com/watch?v=XVO3zsHdvio
- Interacting with GMail
- Setup: https://www.youtube.com/watch?v=iAokhB-bVBw
- Workflow: https://www.youtube.com/watch?v=a8Dhj3Zh9vQ