> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SupportAiAgentSettings

> How the store's AI agent handles support tickets, recommends products and uses its skills, as the AI Agent settings pages set them. Its name, voice, brand description and discount are in `commerceAgentConfig`.

**Required scopes:** [`commerce_agent_settings_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_settings_read), [`commerce_agent_settings_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_settings_write)

**customerSupport** `[SupportAiAgentCustomerSupport!](/docs/api-reference/v3/reference/support/support-ai-agent-customer-support)` *required*

**fields**

**autopilotEnabled** `Boolean!` *required*

Whether AI customer support takes new tickets on the channels in `channels`, handing a ticket to a team member when it can't help.

**available** `Boolean!` *required*

Whether the store may turn AI customer support on: false until AI billing is accepted, when the General tab hides it and turning `liveChatEnabled`, `autopilotEnabled` or a channel on fails with ACTION\_REJECTED.

**channels** `[SupportAiAgentChannels!](/docs/api-reference/v3/reference/support/support-ai-agent-channels)` *required*

Where AI customer support takes tickets.

**fields**

**attentive** `Boolean!` *required*

Attentive.

**email** `Boolean!` *required*

Email, including the contact form.

**facebookComments** `Boolean!` *required*

Public replies to Facebook comments. Off keeps the AI agent on messages only.

**facebookMessages** `Boolean!` *required*

Facebook Messages.

**instagramComments** `Boolean!` *required*

Public replies to Instagram comments. Off keeps the AI agent on DMs only.

**instagramMessages** `Boolean!` *required*

Instagram DMs.

**postscript** `Boolean!` *required*

Postscript.

**sms** `Boolean!` *required*

SMS.

**tiktok** `Boolean!` *required*

TikTok Shop.

**closeNoReplyTicketsOnHandoff** `Boolean!` *required*

Whether a ticket tagged ai:no\_reply is closed, instead of opened, when AI customer support hands it to a team member.

**copilotAutoDraftEnabled** `Boolean!` *required*

Whether Copilot drafts a reply when a customer message arrives.

**copilotEnabled** `Boolean!` *required*

AI Copilot, which drafts and refines replies for team members. Copilot never sends.

**excludedEmailAddresses** `[String!]!` *required*

Email addresses AI customer support never replies to; their tickets are left for the team. At most 500 entries, each at most 255 characters.

**excludedEmailDomains** `[String!]!` *required*

Email domains AI customer support never replies to; their tickets are left for the team. At most 500 entries, each at most 255 characters.

**liveChatEnabled** `Boolean!` *required*

Whether AI customer support answers the storefront chat widget.

**respondToInternalEmailsEnabled** `Boolean!` *required*

Whether AI customer support replies to email from the store's own verified custom domains.

**productRecommendations** `[SupportAiAgentProductRecommendations!](/docs/api-reference/v3/reference/support/support-ai-agent-product-recommendations)` *required*

**fields**

**excludedProductTags** `[String!]!` *required*

Products with any of these tags are never recommended. At most 500 entries, each at most 255 characters.

**ignoreInventoryEnabled** `Boolean!` *required*

Whether the AI agent treats every product as available, whatever its inventory.

**ignoreInventoryText** `String!` *required*

What the AI agent says about availability while `ignoreInventoryEnabled` is on, at most 500 characters.

**limitRecommendationsEnabled** `Boolean!` *required*

Whether the AI agent recommends at most `recommendationLimit` products.

**recommendationLimit** `Int!` *required*

The most products the AI agent recommends at once, from 1.

**suggestedShopifyProductIds** `[String!]!` *required*

Shopify product ids (the number in gid://shopify/Product/\<id>, digits only) the AI agent suggests first, at most 5; otherwise BAD\_USER\_INPUT.

**skills** `[SupportAiAgentSkills!](/docs/api-reference/v3/reference/support/support-ai-agent-skills)` *required*

**fields**

**backInStockNotificationsEnabled** `Boolean!` *required*

Whether the AI agent offers a shopper an email when an out-of-stock product is back. It needs a marketing (email and SMS) subscription: without one the page locks it, and a change fails with ACTION\_REJECTED.

**cartEditingEnabled** `Boolean!` *required*

Whether the AI agent may edit a shopper's cart.

**discountCodesEnabled** `Boolean!` *required*

Whether the AI agent may create discount codes. The discount it creates them from is the Commerce Agent config's `discount`.

**orderEditingEnabled** `Boolean!` *required*

Whether the AI agent may edit orders. Turning it on saves it off until the shopper agent or AI customer support is live for the store, as the page does. The order editing settings page shows the same setting.

**productBundleDiscountExpirationMinutes** `Int!` *required*

How long a bundle discount code lasts, in minutes, from 0.

**productBundleMaxDiscountPercentage** `Float!` *required*

The largest bundle discount, from 0 to 10 percent.

**productBundlesEnabled** `Boolean!` *required*

Whether the AI agent may offer product bundles.

**productVisualizationEnabled** `Boolean!` *required*

Whether the AI agent offers Try It On images of a shopper wearing a product.

**returnsPortalLinkOverrideUrl** `String!` *required*

The returns portal link the AI agent sends instead of the default one: an https URL of at most 2048 characters, or empty for the default.

**tryItOnMessage** `String`

The message that offers Try It On, at most 500 characters. Null while the store uses the default message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.