Module 5: Setting up your LLM Prompt

Basics of Prompt Instructions in Gooey.AI Agent

We'll use the example of creating a health bot that specializes in hypertension and blood pressure (BP), and we’ll walk through key prompting best practices.

What is the “Instructions” Space?

The LLM prompt sets the foundation for your AI Agent's behavior. With the prompt you can:

  • Define the AI Agent's role, scope

  • How it should respond to users

  • Tone of voice

Step 1: Open or Create Your AI Agent

Start by opening an existing AI Agent or creating a new one. For this example, we’ll use a template called Clean Slate Copilot. You can choose any of the AI Agent from our Examples Tab select it from the examples list.

Step 2: Define Your Bot’s Persona and Scope

We want to build a health bot that:

  • Focuses strictly on hypertension and BP.

  • Assists doctors and healthcare providers.

  • Refuses to answer unrelated questions.

In the instructions box, write:

Step 3: Add a Friendly Greeting

A welcoming tone encourages user engagement. Add to your instructions:

Step 4: Testing Your AI Agent

Let’s verify that your AI Agent follows the instructions. We will ask two questions:

  1. Related to the Knowledge Base and the purpose of the AI Agent

  2. Unrelated to the Knowledge Base and AI Agent's purpose

Try asking it an unrelated question, such as:

What is the weather like in Udaipur in the summer?

You should see a response like:

I am sorry, I can’t answer this question. I am here to assist you with hypertension and BP topics.

This confirms your bot is following its assigned scope.

Why is This Important?

Clear instructions ensure your AI Agent stays focused, improving reliability, user trust, and the overall experience. For specialized domains like healthcare, it’s essential to avoid accidental misinformation by only handling relevant queries.

Last updated

Was this helpful?