> For the complete documentation index, see [llms.txt](https://docs.glbnxt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glbnxt.com/tutorials/guides/use-case-instructions/router-workflow-n8n-openwebui.md).

# RouterIQ - Direct Questions to Custom AI Agents

### Introduction

This guide walks you through developing a router workflow in n8n connected to OpenWebUI. The workflow enables your employees to ask questions in a user-friendly environment and get specific answers by custom developed AI Agents. No coding experience is required - you will copy a ready-made script and adapt to your own favoured settings.

*Note that this is a Use Case Instruction, you can use this Use Case as an example to build your own custom Router Workflow in n8n.*

***

#### Prerequisites

* Check out [Connecting n8n Workflows to OpenWebUI via Function](/tutorials/guides/use-case-instructions/connecting-n8n-workflows-to-openwebui-via-function.md) to connect OpenWebUI to n8n. You need to have set this up before starting this tutorial.

***

#### Step 1: Open the Workflow

1. On the [Use Cases Page](https://platform.glbnxt.com/sandbox) find the column **RouterIQ - Direct Questions to Custom AI Agents**. Now, press the `Download` icon.
2. Open n8n in you [Dashboard](https://platform.glbnxt.com/) and create a workflow. Click on the three dots in the right corner of your screen and then on `Import from URL...`.

<img src="/files/GtpOGk9mObgKpbTJzZuj" alt="" width="200">

3. Enter the URL in the pop-up that appears.

<img src="/files/nwqBLxE3nd56z5gemJdS" alt="" width="200">

4. Click on `Import` and the Demo Workflow will appear on your page.
5. Follow the **Setup** in the Workflow.

***

#### Step 2: Adjust your parameters

After you have successfully connected OpenWebUI to the n8n Workflow and added your OpenAI Chat Model credentials, you can start using the demo.

All nodes have parameters, most are tailor-fit to the demo right now. There are some parameters that can be adjusted, below are examples:

* **AI Agents:** Create your own AI Agents (like 'Coding', 'Writing', and 'Knowledge' in this demo).
* **Router & Switch:** Customize the `System Message` and `Routing Rules` to your Custom AI Agents.
* **AI Model:** Pick a `Model` and engineer your own `System Message` for each Custom AI Agent.
* **Memory and/or Tool:** Add a Memory and/or Tool to your Custom AI Agents.

Play around with all parameters to get the most out of your learning experience from this demo.

***

*Need help? Contact the GLBNXT support team or ask a GLBNXT agent to walk you through the setup.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glbnxt.com/tutorials/guides/use-case-instructions/router-workflow-n8n-openwebui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
