Logo

dev-resources.site

for different kinds of informations.

From Scribbles to Spells: Perfecting Instructions in Copilot Studio

Published at
12/3/2024
Categories
powerfuldevs
powerplatform
copilotstudio
promptengineering
Author
balagmadhu
Author
10 person written this
balagmadhu
open
From Scribbles to Spells: Perfecting Instructions in Copilot Studio

Intro:
While experimenting with Generative Answers, I noticed that the output often didn't align with my expectations. My goal was to build a chatbot based on Standard Operating Procedures (SoP), which included detailed step-by-step instructions for completing tasks. However, when using the out-of-the-box Generative Answer feature in Copilot Studio, the responses tended to summarize and provide context rather than delivering the specific instructions users needed.

This led me to explore how I could leverage detailed instructions within the agent to ensure accurate and relevant responses. Instructions are crucial in AI-generated content because they guide the AI to produce responses that are not only relevant and accurate but also contextually appropriate. Well-crafted instructions ensure that the AI understands the user's intent and delivers the desired output.

TCR Framework (Task, Clarity, Refine)

Image description

  • Task: Clearly list all the steps required to complete the instruction. If you do not then the generative AI will basically summarise what it thinks is the bast answer. Be articulate on how you would interpret the SoP. What are the segments that you would be interested to see from the documents.

  • Clarity: Provide clarity on the expected output, ensuring the AI understands what the final result should look like.

  • Refine: Added couple of instruction like

  1. Validation:Ensure the AI validates the user query against the knowledge base accurately.

  2. Formatting: Pay attention to the formatting of the markdown table to ensure it displays correctly.

Sample Instruction Prompt looks like this

Search the Knowledge Base:
1) Search the knowledge base using the user's query.
2) If multiple instances are found, exit the knowledge base and prompt the user to explore a different topic
3) Provide Methodology Status and Category:

Once the specific emission scope is identified, provide a brief description of the methodology status and the category of the scope.
Extract and Present Methodology Details:

From the Methodology section for the specific topic, extract the relevant details.

Present the details in a transposed markdown table format **without summarizing the content**. The table should include the following rows:
Definition
Scope
Method 
SoP steps
How to Input into Inventory System

### Example Output
### Methodology Status and Category
**Status**: [Brief description of the methodology status]

### Methodology Details

| **Category** | **Details** |
|--------------|-------------|
| **Definition** | [Full text from the knowledge base] |
| **Scope** | [Full text from the knowledge base] |
| **Method** | [Full text from the knowledge base] |
| **SoP Steps** | [Full text from the knowledge base] |
| **How to Input into Inventory System** | [Full text from the knowledge base] |

**Additional Tips**
<u>Validation</u>: Ensure the AI validates the user query against the knowledge base accurately.
<u>Formatting</u>: Pay attention to the formatting of the markdown table to ensure it displays correctly.
Enter fullscreen mode Exit fullscreen mode

Demo:

Image description

Image description

I am sure we could optimise the number of steps in the prompt. Its trial and error but this feature is super cool to know

powerfuldevs Article's
30 articles in total
Favicon
The Rise of AI Agents: Understanding the Revolution and Adapting to Change
Favicon
Google and Anthropic are working on AI agents - so I made an open source alternative
Favicon
Power BI vs Tableau vs Looker vs Qlik: A detailed comparison between top data visualization tools
Favicon
Finding the Right Microsoft Platform for Your Applications
Favicon
Top Advanced Power BI Features for Your Business
Favicon
Decoding Microsoft Integration Tools:Which One is Right for You?
Favicon
For A Despicably Good Cause : Small Steps, Big Impact!
Favicon
From Template to Tailored:The Power Platform Way
Favicon
Why You Should Hire a Power BI Developer for Your Business
Favicon
Never code lines on the HTML canvas again
Favicon
From Vanar Sena to Low Code Champions: Lessons from the Ramayana for Digital Transformation
Favicon
From Scribbles to Spells: Perfecting Instructions in Copilot Studio
Favicon
Securing Plain Text using SHA hashing: SHA-256 Sorcery
Favicon
Transforming Inventory Management with Power BI Dashboards in 2024
Favicon
Guรญa Paso a Paso para Realizar una Portabilidad Telefรณnica Empresarial
Favicon
Low-Code, Big Risks: Why Security Awareness is Crucial for Citizen Developers
Favicon
How to Build an AI Agent to Automate Mobile Auto Repair Task Scheduling
Favicon
๐Ÿ’ธ Make Money with Your AI Agent
Favicon
Writing Clean Code in Ruby on Rails Applications ๐Ÿงผ๐Ÿ’ป
Favicon
ALWAYS A DATA NERD
Favicon
Dataverse Solution Checker doesn't like PCFs
Favicon
Permission and Data Security in No-Code: Why it matters and How to control
Favicon
Best Tool for Query anything with SQL
Favicon
Unveiling the Mysteries: Dataverse API
Favicon
Guide: How to add Write-Back capabilities to Power BI reports with Power Apps โ€” Part 2
Favicon
Guide: How to add Write-Back capabilities to your Power BI reports with Power Appsโ€Š-โ€ŠPartย 1
Favicon
Draw on the HTML canvas without code
Favicon
The Impact of Low-Code/No-Code Tools on Traditional Software Development
Favicon
Microsoft Power BI Consulting & Development Services
Favicon
๐Ÿš€ Embed Formbricks Forms in Webflow in Minutes โ€” No Code, Just Magic! ๐Ÿ’ปโœจ

Featured ones: