Re: Not include citation in CoPilot
Sure thing.
first click on your "create Generative Answers" node (aka generative node), then click on advanced.
Click on select a variable and then create a new variable (lets call it var1)
after you have created the variable, if the generative node your are modifying is NOT inside the 'conversational boosting' Topic, you will see that the copilot studio will automatically set the variable type to 'String'. If your Generative node is inside the booting conversation topic then you will see that it is defined as a record.
To the best of my knowledge, if the generative node output is set to String, the answer it returns will include citations. to fix this issue you would need to save the generative node output as 'Record' to make this change, you need to open the code editor of your topic
Next, find the section of the code that is related to the generative node
to change the output of generative node from "string" to "record" add the line 'responseCaptureType: FullResponse' to the end of the generative node part of code:
Close the code editor, and click on Generative node properties again. now you should see that var1 has changed from String to Record.
Next, I want to show the AI response to the user so I place a message node and select what type of a response I want to be shown. (only text, text and references, only references ,...)
Ps. the Var1.Speech is used when you are using voice instead of typing ( I think lol)
I hope it helps!