Library / Building Blocks & Utilities
Building Blocks & Utilities
Return capitals of fictional countries through a sub-workflow lookup
Called by other workflows, it either lists the fictional countries it knows or returns the capital of a requested country. Uses no external services.
What it does
## Sub-workflow: Return the capitals of fictional countries It can either list the countries it knows about or return the capital of a specific country
The steps
- When chat message received
- OpenAI
- Simple Memory
- When Executed by Another Workflow
- Tool to call the workflow below
- Tool: Get current date and time
- List countries?
- Mapping data
- Concatenate country names
- Return country list
- Mapping data1
- Get the matching country's details
- Return specific capital
- Error Handler
Similar automations
Chatbots & Messaging BotsFictional Country Capitals Chatbot with OpenAI13 stepsBuilding Blocks & UtilitiesTest an n8n Sub-Workflow with Sample Input5 stepsAI Agents & AssistantsOpenAI Assistant with Custom n8n Tools12 stepsRAG & Knowledge BasesAssign Return Tickets with OpenAI RAG and Supabase11 steps