Create an AI agent with a prompt. Since the text prompt is central to getting great results out of the AI, it is highly recommended that you also read the [Prompting Best Practices](../../guides/AI/best-practices-for-swaig/index.mdx#crafting-the-initial-prompt-for-the-ai) guide. | Name | Type | Default | Description | |:|:|:--|:| | aiRequired | object | - | An object that contains the [ai parameters](#ai-parameters). | ## **ai Parameters** | Name | Type | Default | Description | ||-|:--|--| | global_meta_dataOptional | object | - | A powerful and flexible environmental variable which can accept arbitrary data that is set initially in the SWML script or from the SWML [set_global_data action](./ai_swaig/functions/ai_swaig.data_map/data_map.output.mdx#actions). This data can be referenced **globally**. All contained information can be accessed and expanded within the prompt - for example, by using a template string. | | hintsOptional | string | - | An array of hints (as strings) to provide context to the dialogue. | | [languages](./ai_languages.mdx)Optional | object | - | An array of JSON objects defining supported languages in the conversation. | | [params](./ai_params/index.mdx)Optional | object | - | A JSON object containing parameters as key-value pairs. | | [post_prompt](./ai_post_prompt.mdx)Optional | object | - | The final set of instructions and configuration settings to send to the agent. | | [post_prompt_url](./ai_post_prompt_url.mdx)Optional | string | - | The URL to which to send status callbacks and reports. Authentication can also be set in the url in the format of username:password@url. | | [pronounce](./ai_pronounce.mdx)Optional | object | - | An array of JSON objects to clarify the AIs pronunciation of words or expressions. | | [prompt](./prompt/index.mdx)Required | object | - | Establishes the initial set of instructions and settings to configure the agent. | | [SWAIG](./ai_swaig/index.mdx)Optional | object | - | An array of JSON objects to create user-defined functions/endpoints that can be executed during the dialogue. |