Who’s it for
Makers who want a tiny, understandable AI agent that turns chat prompts into real recipe results.
Great for demos, tutorials, or as a starting point for tool-using agents.
How it works / What it does
- Listens for chat messages and keeps a short recent-history window.
- Uses a simple system hint to prefer the recipe tool for cooking queries.
- Calls API Ninjas’ recipe endpoint and returns ingredients and instructions.
- Replies concisely with a title, bullet ingredients, and numbered steps.
How to set up
- Add your OpenAI API key to the OpenAI Chat node.
- Add your API Ninjas key to the HTTP Request node used by the recipe tool.
- Deploy the chat trigger and send a message like “find me a pasta recipe.”
Requirements
- n8n environment
- OpenAI API key
- API Ninjas API key for the recipe endpoint
How to customize the workflow
- Swap API Ninjas for any GET or POST recipe API without changing the agent pattern.
- Save results to a database or Google Sheets for later use.
- Add optional fields like servings, time, or nutrition.
- Introduce basic guardrails for tone, length, or ingredient safety checks.