Hi,
So i have a set of documents in sharepoint which guide users through a set of instructions , I want to train my copilot studio agent. My way of doing it is mentioned below.
I created topics
Navigator ( for picking the user query )
Creating a custom prompt asking to identify stage and steps and intent as per the user's question and relaying the output in JSON -> navigating to the Helper.
Custom Prompt
Identify Stage and Steps from the knowledge sources.
Intent can be of five types.
Step Guidance → User is asking for instructions or next steps.
Field Help → User is asking about meaning, purpose, or requirement of a field.
Error → User is reporting an issue, failure, or unexpected behaviour.
Navigation → User is asking how to move between pages, sections, or modules.
Unknown → Intent cannot be clearly determined.
Helper ( for creating different prompts for different Intent Types that I later use in 'Create Generative Answer' node )
Here I create different prompts depending on different intent types. Inside these prompts I use Fx to include values of Stage & Steps so that responses will be custom to user's stage.
After giving appropriate response using the 'Create Generative Answer' node , I ask the user by providing these options - ['Want to move to the next step', 'Facing an issue', 'Ask another question']
I use conditional logic to redirect users to
------> 'Next Stage Finder' if they want to move to next stage in the Process.
------> Set the Intent to 'Error' ->'Back to the top of Helper Topic' if the user is facing issue in the given response.
------> 'Navigator' if they have more questions to ask.
Next Stage Finder ( Inputs - Stage , Step , Outputs - Next Stage , Next Step )
Here I use values from Stage and Step and use a custom prompt in 'Create Generative Answer' node for it to give me the next stage and steps which I send back to the Helper and it starts again from the top.