We are looking to create a custom CoPilot that will:
1) add a custom context
2) inject additional content into the prompt
3) call a 3rd party API from which we will generate a follow-up prompt
4) only return the response of the follow-up prompt to the user
So triggers are not applicable, since we want to apply the solution to any prompt.
I have not really seen how else to set a context and create a flow as described in steps 2) - 3).
Is it possible to create a trigger and simply leave the phrase empty to trigger on any prompt?
On the trigger I could then add a "generative answer", where I can set the context.
But it is not at all clear to me in what variable for the input I can access the users original prompt for modification.
Step 3) seems more straightforward. Here we would then want to take the response to the prompt, send it to a 3rd party API (with some auth token) which would then return the follow-up prompt to then re-submit to CoPilot to generate the final output send to the user in step 4).
Would greatly appreciate some tutorials or examples that do something similar.