Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

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

  1. When chat message received
  2. OpenAI
  3. Simple Memory
  4. When Executed by Another Workflow
  5. Tool to call the workflow below
  6. Tool: Get current date and time
  7. List countries?
  8. Mapping data
  9. Concatenate country names
  10. Return country list
  11. Mapping data1
  12. Get the matching country's details
  13. Return specific capital
  14. Error Handler

Similar automations