Additional Instructions
Provide additional context and user information to your agents to enhance their responses.
Overview
Additional instructions allow you to pass additional context to the agent at the time of the request. Typically, this is used to pass session or specific user data. For example, if user is already signed in on your application, and you know their email, there is no reason for the agent to as it again. So, you can simply add in additional instructions: “The current user’s email is myemail@example.com please use this to submit all customer support tickets”
Usage
Widgets
To use additional instructions in widgets, simply add them in the third parameter in the ChatComponent ****init()
function like below.
Here’s an example of the Widget response based on this input:
CustomGPTs
To use additional instruction with CustomGPTs, add a script tag to handle your instructions or dynamic data to the Custom GPT. Here’s an example of how you can extend the above HTML code with a script:
Here’s an example of the Custom GPT’s response based on this input:
API
For web api, simply use additionalInstructions
in get_completion
POST endpoint. For more details, see: API reference