Agentic Design Patterns – Tool Use Pattern using N8N
In this example, an n8n workflow receives a request for a product inventory and order summary report. An OpenAI model calls two SQLite query tools and a third tool that invokes a report-generation sub-workflow. The database queries retrieve the inventory and calculate order totals, the model assembles the results into HTML, and the sub-workflow converts that HTML into PDF and RTF files. All three of these are tools registered for use by the OpenAI model.
