AI assistants · Digital guide
Design an n8n Workflow for a Crypto Bot
Plan an n8n crypto trading workflow that schedules a scanner, routes approved alerts and records failures. See the guide for connecting bot roles.
View the guide →One-time payment · Instant download
- Level
- Intermediate
- First pass
- About 4 hours for the alert flow
- Mode
- Research and simulation only
- Format
- Digital guide, self-paced
What you’ll work on
A bot research workflow often needs a reliable way to start jobs, react to results and send a human an update. Use n8n to coordinate those steps while your scanner owns the rules that decide whether a token qualifies for review.
What you need before you start
- An n8n instance (cloud or self-hosted)
- A scanner that returns a run ID, time and candidate list
- A private alert destination such as a test Telegram chat
- A place to store processed event IDs
How to approach the project
Set up a scheduled scanner handoff
Give your scanner a single response shape with a run ID, evaluation time and list of candidates. Trigger it with a schedule or a request from n8n. Include status values for a completed scan, an empty shortlist and a failure so a quiet run is easy to distinguish from a broken source.
Route alerts by run and event
Add a branch that formats passing results and sends them to your alert destination. Put a unique event ID in each message and track it so a workflow retry does not send duplicates. Test a timed-out request and a repeated scan with the same run ID.
Add a place to review failures
Keep failed runs in a separate log with the node name, failure time and next action. Return to the scanner when inputs are stale, because rerunning a notification step cannot refresh market data. Leave credentials in the workflow’s credential store and record outcomes without printing secret values.
Worked example: Workflow outcomes you should be able to tell apart
| Scan result | Status value | n8n action |
|---|---|---|
| 3 candidates | completed | Send one message per new event ID |
| 0 candidates | empty | Log quietly. Optional daily summary |
| Source timed out | failed | Write to failure log; do not send a trade-style alert |
| Same run ID repeated | duplicate | Skip. No second message |
Invented statuses. A quiet run and a broken source must never look the same.
Common mistakes to avoid
Putting trading rules inside n8n nodes
Keep rules in a testable component and use n8n for scheduling and routing.
No event IDs
Without a unique ID per event, a retry can send duplicate alerts.
Secrets in node text
Use n8n's credential store and never print secret values in logs or messages.
You’re done when…
- A scheduled run reaches your scanner and returns a status
- Each alert contains a unique event ID
- A timed-out request ends up in the failure log with node and time
- Re-running the same run ID sends nothing new
Frequently asked questions
Can I begin with n8n if I’m new to automation?
Start by sending a fixed test message through a simple workflow. The filter and monitor can connect to it after you understand how each step passes data.
Does n8n handle the trading rules?
The project can use n8n for scheduling and coordination. Keep the rules in a separately testable component and verify them before wiring in additional actions.
Do I need to self-host n8n?
No. Either hosted or self-hosted works. Costs and limits depend on the option you choose.
What should the first workflow do?
Send a fixed test message. Add the scanner once you understand how data passes between nodes.
AI Trading Bot Masterclass
Work through AI-assisted bot setup, exchange connections, strategy testing and deployment.
Explore the guide · $67Educational material only, not financial advice. Example figures on this page are invented to illustrate the method. Crypto assets are volatile and you can lose money. Test in simulation and check current provider terms before using any service.