> For the complete documentation index, see [llms.txt](https://docs.360dialog.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.360dialog.com/docs/mba/api-ref/onboarding/get-ai-agent-settings.md).

# Get AI agent settings

Retrieve the current AI settings for the specified entity.

```json
{"openapi":"3.1.0","info":{"title":"Business Agent API","version":"1.50.0"},"tags":[{"name":"Onboarding","description":"Endpoints for onboarding a Business Agent and managing its allowlist and settings"}],"servers":[{"description":"Production server","url":"https://waba-v2.360dialog.io"}],"security":[{"D360-API-KEY":[]}],"components":{"securitySchemes":{"D360-API-KEY":{"description":"API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.","in":"header","name":"D360-API-KEY","type":"apiKey"}},"schemas":{"onboard.BizAIOmniChannelSettingsResponse":{"description":"The AI agent settings for an entity","properties":{"agent_id":{"description":"Unique identifier for this agent configuration. Use this ID to target a specific agent in update or delete operations","type":"string"},"ai_audience":{"description":"Controls which consumers the AI agent responds to. EVERYONE = all consumers (default), ALLOWLISTED_ONLY = only phone numbers in the allowlist. Null for non-WhatsApp entities.","enum":["ALLOWLISTED_ONLY","EVERYONE"],"type":"string"},"channel":{"description":"The channel/platform these settings apply to","enum":["email","instagram","line","messenger","sms","tiktok","unknown","webchat","whatsapp"],"type":"string"},"followup":{"$ref":"#/components/schemas/onboard.BizAIOmniChannelSettingsFollowup"},"handoff":{"$ref":"#/components/schemas/onboard.BizAIOmniChannelSettingsHandoff"},"rollout":{"$ref":"#/components/schemas/onboard.BizAIOmniChannelSettingsRollout"}},"required":["agent_id","channel","rollout"],"type":"object"},"onboard.BizAIOmniChannelSettingsFollowup":{"description":"Settings for following up with an inactive user. Null if not configured","properties":{"enabled":{"description":"Whether followup is enabled. true to enable, false to disable","type":"boolean"},"followup_interval_in_seconds":{"description":"The time in seconds of user inactivity before the followup message is sent. Setting to 0 will disable followup","enum":[0,300,900,1800,3600,7200,28800,86400],"type":"integer"},"message":{"description":"The message sent to follow up with the user after inactivity","type":"string"}},"required":["enabled"],"type":"object"},"onboard.BizAIOmniChannelSettingsHandoff":{"description":"Settings for handing over the conversation to a human agent. Null if not configured","properties":{"enabled":{"description":"Whether handoff to a human agent is enabled. true to enable, false to disable","type":"boolean"},"message":{"description":"The message displayed to the user when a handoff to a human agent occurs","type":"string"}},"required":["enabled"],"type":"object"},"onboard.BizAIOmniChannelSettingsRollout":{"description":"Rollout configuration for the AI agent, containing the enabled flag and future gradual rollout fields","properties":{"enabled":{"description":"Whether the AI agent is currently enabled. true for on, false for off","type":"boolean"}},"required":["enabled"],"type":"object"},"onboard.StandardError":{"description":"Standard error response for Meta Business Agent endpoints","properties":{"detail":{"description":"Human-readable explanation of the error","type":"string"},"status":{"description":"HTTP status code","type":"integer"},"title":{"description":"Short, human-readable summary of the problem","type":"string"},"type":{"description":"A URI reference identifying the problem type","type":"string"}},"type":"object"}}},"paths":{"/agent_config/settings":{"get":{"description":"Retrieve the current AI settings for the specified entity.","operationId":"get-agent-config-settings","parameters":[{"description":"Meta Business Agent API version","in":"header","name":"X-API-Version","schema":{"enum":["2.0.0"],"type":"string"}},{"description":"Optional agent ID. When provided, returns the specific agent configuration. When absent, returns all settings for the given channel.","in":"query","name":"agent_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/onboard.BizAIOmniChannelSettingsResponse"},"type":"array"}}},"description":"The AI settings for the entity"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/onboard.StandardError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/onboard.StandardError"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/onboard.StandardError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/onboard.StandardError"}}},"description":"Too many requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/onboard.StandardError"}}},"description":"Server error"}},"summary":"Get AI agent settings","tags":["Onboarding"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.360dialog.com/docs/mba/api-ref/onboarding/get-ai-agent-settings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
