Optional
agentSettings?: {Optional
agentApiName?: stringThe API name to use for the Agent metadata to be created.
The name to use for the Agent metadata to be created.
Optional
enrichLogs?: booleanStore conversation transcripts, including end-user data, in event logs for this agent for troubleshooting. If false, conversation data is replaced with, "Sensitive data not available."
Default: false
Optional
plannerId?: stringThe GenAiPlanner metadata ID if already created in the org.
Optional
primaryLanguage?: "en_US"The language your agent uses in conversations. Agent currently supports English only.
Default: en_US
Optional
tone?: AgentToneThe conversational style of your agent's responses. Can be one of: formal, casual, or neutral.
Default: casual
Optional
userId?: stringUser ID of an existing user.
Determines what this agent can access and do. If your agent uses features or objects that require additional permissions, assign a custom user.
Optional
preDefinedTopics?: DraftAgentTopicsList of topics from an agent spec.
Optional
saveAgent?: booleanWhether to persist the agent creation in the org (true) or preview what would be created (false).
Default: false
Settings for the agent being created. Needed only when saveAgent=true