--- title: "Additional Instructions" description: "Provide additional context and user information to your agents to enhance their responses." icon: "message" --- ## 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](mailto: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. ```html My Travel Planner ``` Here's an example of the **Widget** response based on this input: ![widget-screenshot.png](/images/additional-instructions-example.webp) ### 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: ```html My Travel Planner ``` Here's an example of the **Custom GPT's** response based on this input: ![custom-gpt-screenshot.png](/images/custom-gpt-screenshot.webp) ### API For web api, simply use `additionalInstructions` in the `get_response` POST endpoint. For more details, see: [API reference](/platform/integrations/api/get-response)