From the course: Automate Your Work with n8n (No Code Required)

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Implementing fallback and escalation

Implementing fallback and escalation

- [Instructor] Our workflow is now working end to end. We receive chat messages from a user. We look up products in the database and we use a chat model to respond to the chat with replies. But now imagine that we want to be notified in case a user inquires about products that are out of stock. The first thing we need to do is to create a second AI agent. And for that we right click the empty space and we click add node. The right panel opens, and again we search for AI agent and we click the AI agent node. In this dropdown, we click the second option, define below because we will use our own expression in the prompt field. We expand and I will paste a prompt that I have already prepared and let's go through it together. First I tell it the role. You are a data extractor. Second, I tell it the task. From the customer service reply, identify all products that are said be out of stock. I tell it some variations in…

Contents