# Make your Virtual Agent act based on user Intent

**Cognigy Support**  
December 9, 2024

**Let your Virtual Agent make a decision!**  
You can use Intents to navigate the conversation through the Flow. Lookup Nodes are best-practice to implement routing based on Intents.

#### #1 Add a Lookup Node  
Navigate to your "IT Service Request" Flow and add a **Lookup Node** between Start and End Node. Click the Lookup Node and define what it should do: Go to the Type field and select "Intent". Save the Node.

#### #2 Configure the Case Nodes  
Configure the two **Case Nodes** by opening them one after another and select the previously defined Intents: "createTicket" and "resetPassword".

Your browser does not support this video.  
Progress  
Note: The video depicts legacy terminology. Please use a **Lookup Node.**

#### #3 Configure a fallback  
Add a **Say Node** under Default to prompt

```
Sorry, what do you mean exactly?
```

in case no intent is recognized.

#### #4 Add responses for recognized Intents  
Create **Say Nodes** for the other cases and enter texts like

```
Sure, I can help you to create a ticket.
```

and

```
Sure, I can reset your password.
```

Tip: You can speed this up by copying the Default Say Node via context menu or just hold ALT and drag & drop it.

Your browser does not support this video.  
Progress

#### #5 Try it out!  
Test the conversation in the **Interaction Panel** with inputs like "I want to submit a ticket" and "I don't remember my password". Any input is routed through best-matching case and the path is highlighted in the Flow-Chart. You can also test in the Webchat Endpoint.

Your browser does not support this video.  
Progress

**#DONE! [Now let's use a Lexicon to understand specific terms a user uses!](https://support.cognigy.com/hc/en-us/articles/360014776979)**

### Getting Started with Intent-based bots

- [Create a Virtual Agent](https://support.cognigy.com/hc/en-us/articles/360014523060-Create-a-Virtual-Agent)
- [Design a Flow and add a Message](https://support.cognigy.com/hc/en-us/articles/360014524180-Design-a-Flow-and-add-a-Message)
- [Chat with your Virtual Agent](https://support.cognigy.com/hc/en-us/articles/360014514720-Chat-with-your-Virtual-Agent)
- [Let your Virtual Agent ask a question](https://support.cognigy.com/hc/en-us/articles/360014610060-Let-your-Virtual-Agent-ask-a-question)
- [Deploy your Virtual Agent](https://support.cognigy.com/hc/en-us/articles/360014662839-Deploy-your-Virtual-Agent)
- [Train your Virtual Agent to recognize Intents](https://support.cognigy.com/hc/en-us/articles/360014776879-Train-your-Virtual-Agent-to-recognize-Intents)
- [Make your Virtual Agent act based on user Intent](https://support.cognigy.com/hc/en-us/articles/360014735020-Make-your-Virtual-Agent-act-based-on-user-Intent)
- [Match User Expressions with a Lexicon](https://support.cognigy.com/hc/en-us/articles/360014776979-Match-User-Expressions-with-a-Lexicon)
- [Let your Virtual Agent respond to Keyphrases](https://support.cognigy.com/hc/en-us/articles/360014735200-Let-your-Virtual-Agent-respond-to-Keyphrases)
- [Fetch data from an external API and work with it](https://support.cognigy.com/hc/en-us/articles/360015006459-Fetch-data-from-an-external-API-and-work-with-it)
