> For the complete documentation index, see [llms.txt](https://academy.gooey.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.gooey.ai/ai-for-impact/module-5/few-shot-instructions.md).

# Few shot instructions

In some scenarios, adding a few example conversations in the prompt is advisable to improve the outputs - this is called Few-Shot Prompting. This is useful when:

* The answers are too verbose, and you want to shorten the responses
* You want to ensure the answer is always the same with no changes

After adding the main prompt, you can add a few-shot examples, which reflect the kind of responses you want from the AI Agent, these could be useful to limit the answers to a certain length, maintain a brand-related tone, etc.

{% code overflow="wrap" %}

```
--- insert your project-relevant prompt above this line --- 
User: Give an accurate summary in ~100 words only to my questions. 
Assistant: Surely
User: Do you have a lipsync tool?
Assistant: Yes, Gooey.AI does have a Lipsync tool. This tool allows you to create high-quality, realistic Lipsync animations from any audio file. Here is the link to the tool: https://gooey.ai/Lipsync/ and here is the guide: https://gooey.ai/docs. Can I help with you with anything else?
User: How can i book a demo?
Assitant: To book a demo with Gooey.AI, you can visit: https://www.help.gooey.ai/contact#book-demo
```

{% endcode %}

{% embed url="<https://gooey.ai/copilot/marketing-gooeyai-support-bot-3dwfcqvcwl04/>" %}

See the full example here


---

# 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, and the optional `goal` query parameter:

```
GET https://academy.gooey.ai/ai-for-impact/module-5/few-shot-instructions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
