*** id: 43b15040-3108-4b7f-83d3-ac23153e4106 hide\_title: false slug: /reference/amazon-bedrock/prompt title: prompt description: >- Establish the set of rules and instructions for the Amazon Bedrock agent through a prompt. max-toc-depth: 3 ---------------- [prompt-properties]: #properties ## **Properties** An object that accepts the [`prompt properties`][prompt-properties]. The `prompt` property accepts one of the following objects: The instructions to send to the agent. Randomness setting. Float value between 0.0 and 1.5. Closer to 0 will make the output less random. Randomness setting. Alternative to temperature. Float value between 0.0 and 1.0. Threshold to fire a speech-detect event at the end of the utterance. The voice the Amazon Bedrock agent will use during the interaction. Possible Values: `tiffany`, `matthew`, `amy`, `lupe`, `carlos` An array of objects that defines the prompt object model (POM) for the agent. The POM is a structured data format for organizing and rendering prompts that are clearly structured and easy to understand. By breaking prompts into sections, users can manage each section independently and then combine them into a single cohesive prompt. SignalWire renders the POM into a markdown document before sending it to the LLM. If the `text` parameter is present while using `pom`, the `pom` prompt will be used instead of `text`. The title of the section. Will be a heading in the rendered prompt. The body of the section. This will be a paragraph in the rendered prompt. Required if `bullets` is not present. An array of strings that represent the bullets of the section. This will be a list of short statements/rules in the rendered prompt. Optional if `body` is present. An array of section objects allowing users to nest sections within sections. Each subsection accepts the same properties as a top-level POM section (`title`, `body`, `bullets`, `numbered`, `numberedBullets`). If `true`, the section will be numbered in the rendered prompt. If `true`, the bullets will be numbered in the rendered prompt. Randomness setting. Float value between 0.0 and 1.5. Closer to 0 will make the output less random. Randomness setting. Alternative to temperature. Float value between 0.0 and 1.0. Threshold to fire a speech-detect event at the end of the utterance. The voice the Amazon Bedrock agent will use during the interaction. Possible Values: `tiffany`, `matthew`, `amy`, `lupe`, `carlos` #### POM example ```yaml version: 1.0.0 sections: main: - amazon_bedrock: prompt: text: "Prompt is defined in pom" pom: - title: "Agent Personality" body: "You are a friendly and engaging assistant. Keep the conversation light and fun." subsections: - title: "Personal Information" numberedBullets: true bullets: - "You are a AI Agent" - "Your name is Frank" - "You work at SignalWire" - title: "Task" body: "You are to ask the user a series of questions to gather information." bullets: - "Ask the user to provide their name" - "Ask the user to provide their favorite color" - "Ask the user to provide their favorite food" - "Ask the user to provide their favorite movie" - "Ask the user to provide their favorite TV show" - "Ask the user to provide their favorite music" - "Ask the user to provide their favorite sport" - "Ask the user to provide their favorite animal" ``` ```json { "version": "1.0.0", "sections": { "main": [ { "amazon_bedrock": { "prompt": { "text": "Prompt is defined in pom", "pom": [ { "title": "Agent Personality", "body": "You are a friendly and engaging assistant. Keep the conversation light and fun.", "subsections": [ { "title": "Personal Information", "numberedBullets": true, "bullets": [ "You are a AI Agent", "Your name is Frank", "You work at SignalWire" ] } ] }, { "title": "Task", "body": "You are to ask the user a series of questions to gather information.", "bullets": [ "Ask the user to provide their name", "Ask the user to provide their favorite color", "Ask the user to provide their favorite food", "Ask the user to provide their favorite movie", "Ask the user to provide their favorite TV show", "Ask the user to provide their favorite music", "Ask the user to provide their favorite sport", "Ask the user to provide their favorite animal" ] } ] } } } ] } } ``` #### Rendered prompt The above POM example will render the following markdown prompt: ```markdown ## Agent Personality You are a friendly and engaging assistant. Keep the conversation light and fun. ### Personal Information 1. You are a AI Agent 2. Your name is Frank 3. You work at SignalWire ## Task You are to ask the user a series of questions to gather information. - Ask the user to provide their name - Ask the user to provide their favorite color - Ask the user to provide their favorite food - Ask the user to provide their favorite movie - Ask the user to provide their favorite TV show - Ask the user to provide their favorite music - Ask the user to provide their favorite sport - Ask the user to provide their favorite animal ``` ## **Variable Expansion** Use the following syntax to expand variables into your prompt. Inbound or outbound. The caller ID number. The local date. The spoken date. The local time. The time of day. A list of supported languages. The default language.