# Generate AI trading alerts from CoinGecko and Alpha Vantage: n8n workflow

> Started by a clock, and works across Email and Postgres. 15 steps, 1 branch: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/generate-ai-trading-alerts-from-coingecko-and-alpha-vantage (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Generate AI trading alerts from CoinGecko and Alpha Vantage

Started by a clock, and works across Email and Postgres. 15 steps, 1 branch: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-trading-alerts-from-coingecko-and-alpha-vantage)

**15 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 7 Service 7

The steps in the order they run, from what starts it.

- 1 **Market Data Trigger - Every 15 minutes** Schedule trigger *Starts it*
- 2 **Fetch cryptocurrency prices from CoinGecko** Http Request *Service*
- 3 **Fetch stock prices from Alpha Vantage** Http Request *Service*
- 4 **Combine crypto and stock market data** Merge *Logic*
- 5 **Calculate technical indicators** Code *Logic*
- 6 **Call AI model for signal prediction** Http Request *Service*
- 7 **Analyze AI signals and confidence** Code *Logic*
- 8 **Validate signal strength and filter** Filter *Logic*
- 9 **Store trade signal in PostgreSQL** Postgres *Service*
- 10 **Route by signal action** Switch *Logic*
- 11 **Generate trading alert message** Code *Logic*
- 12 **Send Slack notification** Http Request *Service*
- 13 **Send Email alert** Email Send *Service*
- 14 **Send SMS alert (Twilio)** Http Request *Service*
- 15 **Log trade execution and success** Code *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 15, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Email, Postgres
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Email and Postgres accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 15 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-trading-alerts-from-coingecko-and-alpha-vantage)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Customer onboarding automation with HubSpot** 15 steps · Email, HubSpot](https://millionrounds.com/workflow/customer-onboarding-automation-with-hubspot)
- [**Monitor Amazon keyword rankings and alerts with Pangolinfo** 15 steps · Email](https://millionrounds.com/workflow/monitor-amazon-keyword-rankings-and-alerts-with-pangolinfo)
- [**Monitor PostgreSQL data quality and generate remediation alerts** 15 steps · Postgres, Slack](https://millionrounds.com/workflow/monitor-postgresql-data-quality-and-generate-remediation-ale)
- [**Monitor brand mentions across Reddit and Hacker News** 15 steps · Email, Google Sheets](https://millionrounds.com/workflow/monitor-brand-mentions-across-reddit-and-hacker-news)
- [**Notify website downtime with Telegram** 15 steps · Email, Telegram](https://millionrounds.com/workflow/notify-website-downtime-with-telegram)
- [**Parse DMARC reports, save them in database and notify** 15 steps · Email, MySQL](https://millionrounds.com/workflow/parse-dmarc-reports-save-them-in-database-and-notify)
