# Answer currency rate questions from Gmail and chat with Gemini and Frankfurter API

> Quick Overview This workflow answers exchange-rate questions coming from Gmail or an n8n chat trigger using a Google Gemini AI agent that calls the Frankfurter exchange-rate API, caches successful rate responses in n8n Data Tables to avoid repeated model calls, logs usage metrics, and replies back on the originating channel. How it works 1. Triggers when a new Gmail message matching the exchange-rate search filter arrives or when an n8n chat message is received. 2. Normalizes incoming email and chat messages into a common format (session ID, user text, source channel, sender email) and processes them one at a time. 3. Extracts two ISO 4217 currency codes from the message to build a per-day cache key and looks up a previously saved response in an n8n Data Table. 4. If a fresh cached response exists (within the configured TTL), uses it directly without calling the AI model. 5. If there is no fresh cache hit, runs a Google Gemini-powered AI agent that calls the Frankfurter API to fetch th

- **Domain**: `n8n-workflow-20312.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20312
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20312.n8n.io
- Documentation: https://n8n.io/workflows/20312
