Establishes the initial set of instructions and settings to configure the agent. | Name | Type | Default | Description | |:-|:|:--|:-| | promptRequired | object | - | An object that accepts the [prompt parameters](#prompt-parameters). | ## **prompt Parameters** | Name | Type | Default | Description | |:|:|:--|:--| | textRequired | string | - | The instructions to send to the agent. | | [contexts](./contexts/index.mdx)Optional | object | - | An object that defines the contexts for the AI. The contexts are used to define the flow of the conversation. Every context object requires a default key, which is the default context thats used at the beginning of the conversation. Additionally, more contexts can be defined as any other key in the object. | | temperatureOptional | number | 1.0 | Randomness setting. Float value between 0.0 and 1.5. Closer to 0 will make the output less random. | | top_pOptional | number | 1.0 | Randomness setting. Alternative to temperature. Float value between 0.0 and 1.0. Closer to 0 will make the output less random. | | confidenceOptional | number | 0.6 | Threshold to fire a speech-detect event at the end of the utterance. Float value between 0.0 and 1.0. Decreasing this value will reduce the pause after the user speaks, but may introduce false positives. | | presence_penaltyOptional | number | 0 | Aversion to staying on topic. Float value between -2.0 and 2.0. Positive values increase the models likelihood to talk about new topics. | | frequency_penaltyOptional | number | 0 | Aversion to repeating lines. Float value between -2.0 and 2.0. Positive values decrease the models likelihood to repeat the same line verbatim. | ## **Variable Expansion** Use the following syntax to expand variables into your prompt. | Variable | Description | |:-|:-| | %{call_direction} | Inbound or outbound. | | %{caller_id_number} | The caller ID number. | | %{local_date} | The local date. | | %{spoken_date} | The spoken date. | | %{local_time} | The local time. | | %{time_of_day} | The time of day. | | %{supported_languages} | A list of supported languages. | | %{default_language} | The default language. |