> ## 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.

# supportChatWidgetGeneralUpdate

> Change the storefront chat widget's general settings, as the widget settings page saves them. Arguments you omit are unchanged, and a change shows to shoppers at once. A changed value outside its field's stated limits fails with BAD_USER_INPUT and nothing is written. Needs account_write as well as support_settings_write, as the page needs the permission to set general settings; without it the call throws a 403 INSUFFICIENT_SCOPE error. Returns the settings after the change.

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

## Arguments

**prompts** `[SupportChatWidgetPromptsInput](/docs/api-reference/v3/reference/support/support-chat-widget-prompts-input)`

**fields**

**custom** `[String!]`

The store's own prompts: at most 20, each 1 to 35 characters. A change replaces them all. Not null; omit it to keep the value.

**predefined** `[\[SupportChatWidgetPrompt!\]](/docs/api-reference/v3/reference/support/support-chat-widget-prompt)`

The prompts to show, each once, at most 3. A change replaces them all.

**proactiveEnabled** `Boolean`

Whether the AI agent writes a prompt from the page the shopper is on. Not null; omit it to keep the value.

**quickActionFontSize** `Int`

The quick actions' text size in pixels, from 6 to 24.

**quickActions** `[\[SupportChatWidgetQuickActionInput!\]](/docs/api-reference/v3/reference/support/support-chat-widget-quick-action-input)`

The widget's quick actions in order, at most 25. They replace the store's; send one back as read to keep it. Empty removes them all.

**fields**

**chatFlowStep** `Int`

For START\_CHAT\_FLOW: a step of the store's chat flow, counted from 0.

**kind** `[SupportChatWidgetQuickActionKind!](/docs/api-reference/v3/reference/support/support-chat-widget-quick-action-kind)` *required*

What it does.

**message** `String`

For SEND\_MESSAGE: 1 to 500 characters.

**title** `String!` *required*

What the button says: 1 to 500 characters, and no other quick action's title.

**url** `String`

For OPEN\_LINK: an http or https link.

**selfServe** `[SupportChatWidgetSelfServeInput](/docs/api-reference/v3/reference/support/support-chat-widget-self-serve-input)`

**fields**

**editOrderEnabled** `Boolean`

Whether shoppers may edit an order from the widget, which the store's order editing settings turn on. It shows only while an order editing action is on too. Turning it on fails with BAD\_USER\_INPUT for a store without the help desk. Not null; omit it to keep the value.

**editOrderLabel** `String`

What the edit order action says. At most 500 characters. Not null; omit it to keep the value.

**startClaimEnabled** `Boolean`

**startReturnEnabled** `Boolean`

**startReturnLabel** `String`

What the start a return action says. At most 500 characters. Not null; omit it to keep the value.

**trackPackageEnabled** `Boolean`

Whether shoppers can track a package from the widget. Not null; omit it to keep the value.

**trackPackageLabel** `String`

What the track a package action says. At most 500 characters. Not null; omit it to keep the value.

**setup** `[SupportChatWidgetSetupInput](/docs/api-reference/v3/reference/support/support-chat-widget-setup-input)`

**fields**

**hiddenOnProductPages** `Boolean`

Whether the widget is hidden on product pages. Not null; omit it to keep the value.

**launcherHidden** `Boolean`

Whether the widget's launcher button is hidden, for a store that opens it another way. Not null; omit it to keep the value.

**returnsPortalEnabled** `Boolean`

Whether the widget shows in the returns portal. Not null; omit it to keep the value.

**storefrontEnabled** `Boolean`

Whether the widget shows on the storefront. The store's theme must also have Redo's app embed on. Not null; omit it to keep the value.

**style** `[SupportChatWidgetStyleInput](/docs/api-reference/v3/reference/support/support-chat-widget-style-input)`

**fields**

**buttonFontSize** `Int`

Button text size in pixels, from 6 to 24. Not null; omit it to keep the value.

**desktopOffsetX** `Float`

Pixels the launcher is moved sideways on desktop. Not null; omit it to keep the value.

**desktopOffsetY** `Float`

Pixels the launcher is moved up on desktop. Not null; omit it to keep the value.

**fontFamily** `String`

The widget's font. At most 500 characters. Null clears it, as the page's default is none.

**gradientInverted** `Boolean`

Whether the gradient runs the other way. Not null; omit it to keep the value.

**gradientStrength** `Float`

How strong the color's gradient is, from 0 to 1. Not null; omit it to keep the value.

**headerFontSize** `Int`

Heading text size in pixels, from 6 to 72. Not null; omit it to keep the value.

**headingLogoUrl** `String`

The logo over the heading, as an http or https link. Null clears it, as the page's default is none.

**messageFontSize** `Int`

Chat message text size in pixels, from 6 to 24. Not null; omit it to keep the value.

**mobileFullscreen** `Boolean`

Whether the open widget fills a phone's screen. Not null; omit it to keep the value.

**mobileOffsetX** `Float`

Pixels the launcher is moved sideways on phones. Not null; omit it to keep the value.

**mobileOffsetY** `Float`

Pixels the launcher is moved up on phones. Not null; omit it to keep the value.

**mobileZIndex** `Int`

The widget's CSS z-index on phones, from 0. Null uses `zIndex` there too.

**opensToWelcomePage** `Boolean`

Whether the widget opens to its welcome page rather than the chat. Not null; omit it to keep the value.

**position** `[SupportChatWidgetPosition](/docs/api-reference/v3/reference/support/support-chat-widget-position)`

**primaryColor** `String`

The widget's color, as a hex color such as #181818. Not null; omit it to keep the value.

**secondaryColor** `String`

The secondary color, as a hex color. Not null; omit it to keep the value.

**secondaryColorEnabled** `Boolean`

Whether the secondary color is used. Not null; omit it to keep the value.

**zIndex** `Int`

The widget's CSS z-index, from 0. Not null; omit it to keep the value.

**welcome** `[SupportChatWidgetWelcomeInput](/docs/api-reference/v3/reference/support/support-chat-widget-welcome-input)`

**fields**

**chatButtonText** `String`

The text on the button that starts a chat. At most 500 characters. Not null; omit it to keep the value.

**heading** `String`

The widget's main heading. At most 500 characters. Not null; omit it to keep the value.

**launcherText** `String`

The text beside the launcher. Empty shows none. At most 500 characters. Not null; omit it to keep the value.

**subheading** `String`

The line under the main heading. At most 500 characters. Not null; omit it to keep the value.

## Returns

**supportChatWidgetGeneralUpdate** `[SupportChatWidgetGeneral!](/docs/api-reference/v3/reference/support/support-chat-widget-general)` *required*

The storefront chat widget's general settings, as Customer widget › General and the sign-up reward show them. One per store. Its support settings are `supportChatWidget`.

**fields**

**prompts** `[SupportChatWidgetPrompts!](/docs/api-reference/v3/reference/support/support-chat-widget-prompts)` *required*

**fields**

**custom** `[String!]!` *required*

The store's own prompts: at most 20, each 1 to 35 characters. A change replaces them all.

**predefined** `[\[SupportChatWidgetPrompt!\]!](/docs/api-reference/v3/reference/support/support-chat-widget-prompt)` *required*

The prompts Redo writes that the widget shows.

**proactiveEnabled** `Boolean!` *required*

Whether the AI agent writes a prompt from the page the shopper is on.

**quickActionFontSize** `Int!` *required*

The buttons' text size in pixels.

**quickActions** `[\[SupportChatWidgetQuickAction!\]!](/docs/api-reference/v3/reference/support/support-chat-widget-quick-action)` *required*

The buttons on the widget's home page, in order. The contact form offers the same ones.

**fields**

**chatFlowStep** `Int`

The chat flow step it starts at, counted from 0, for START\_CHAT\_FLOW. Null otherwise.

**kind** `[SupportChatWidgetQuickActionKind!](/docs/api-reference/v3/reference/support/support-chat-widget-quick-action-kind)` *required*

What it does.

**message** `String`

The answer, for SEND\_MESSAGE. Null otherwise.

**title** `String!` *required*

What the button says.

**url** `String`

The link, for OPEN\_LINK. Null otherwise.

**selfServe** `[SupportChatWidgetSelfServe!](/docs/api-reference/v3/reference/support/support-chat-widget-self-serve)` *required*

**fields**

**editOrderEnabled** `Boolean!` *required*

Whether shoppers may edit an order from the widget, which the store's order editing settings turn on. It shows only while an order editing action is on too. Turning it on fails with BAD\_USER\_INPUT for a store without the help desk.

**editOrderLabel** `String!` *required*

What the edit order action says. At most 500 characters.

**startClaimEnabled** `Boolean`

Whether shoppers can start a claim. Null when never set: the widget then offers it to a store whose customers can file claims.

**startReturnEnabled** `Boolean`

Whether shoppers can start a return or exchange. Null when never set: the widget then offers it to a store with returns.

**startReturnLabel** `String!` *required*

What the start a return action says. At most 500 characters.

**trackPackageEnabled** `Boolean!` *required*

Whether shoppers can track a package from the widget.

**trackPackageLabel** `String!` *required*

What the track a package action says. At most 500 characters.

**setup** `[SupportChatWidgetSetup!](/docs/api-reference/v3/reference/support/support-chat-widget-setup)` *required*

**fields**

**hiddenOnProductPages** `Boolean!` *required*

Whether the widget is hidden on product pages.

**launcherHidden** `Boolean!` *required*

Whether the widget's launcher button is hidden, for a store that opens it another way.

**returnsPortalEnabled** `Boolean!` *required*

Whether the widget shows in the returns portal.

**storefrontEnabled** `Boolean!` *required*

Whether the widget shows on the storefront. The store's theme must also have Redo's app embed on.

**signUpIncentive** `[SupportChatWidgetSignUpIncentive!](/docs/api-reference/v3/reference/support/support-chat-widget-sign-up-incentive)` *required*

**fields**

**buttonLabel** `String!` *required*

What the sign-up button says. It doesn't follow the discount. At most 500 characters.

**discountPercentage** `Float!` *required*

The discount, from 0 to 100 percent.

**enabled** `Boolean!` *required*

Whether shoppers are offered a discount to sign up with their email.

**style** `[SupportChatWidgetStyle!](/docs/api-reference/v3/reference/support/support-chat-widget-style)` *required*

**fields**

**buttonFontSize** `Int!` *required*

Button text size in pixels, from 6 to 24.

**desktopOffsetX** `Float!` *required*

Pixels the launcher is moved sideways on desktop.

**desktopOffsetY** `Float!` *required*

Pixels the launcher is moved up on desktop.

**fontFamily** `String`

The widget's font. At most 500 characters.

**gradientInverted** `Boolean!` *required*

Whether the gradient runs the other way.

**gradientStrength** `Float!` *required*

How strong the color's gradient is, from 0 to 1.

**headerFontSize** `Int!` *required*

Heading text size in pixels, from 6 to 72.

**headingLogoUrl** `String`

The logo over the heading, as an http or https link.

**messageFontSize** `Int!` *required*

Chat message text size in pixels, from 6 to 24.

**mobileFullscreen** `Boolean!` *required*

Whether the open widget fills a phone's screen.

**mobileOffsetX** `Float!` *required*

Pixels the launcher is moved sideways on phones.

**mobileOffsetY** `Float!` *required*

Pixels the launcher is moved up on phones.

**mobileZIndex** `Int`

The widget's CSS z-index on phones. Null while it is `zIndex`.

**opensToWelcomePage** `Boolean!` *required*

Whether the widget opens to its welcome page rather than the chat.

**position** `[SupportChatWidgetPosition!](/docs/api-reference/v3/reference/support/support-chat-widget-position)` *required*

**primaryColor** `String!` *required*

The widget's color, as a hex color such as #181818.

**secondaryColor** `String!` *required*

The secondary color, as a hex color.

**secondaryColorEnabled** `Boolean!` *required*

Whether the secondary color is used.

**zIndex** `Int!` *required*

The widget's CSS z-index, from 0.

**welcome** `[SupportChatWidgetWelcome!](/docs/api-reference/v3/reference/support/support-chat-widget-welcome)` *required*

**fields**

**chatButtonText** `String!` *required*

The text on the button that starts a chat. At most 500 characters.

**heading** `String!` *required*

The widget's main heading. At most 500 characters.

**launcherText** `String!` *required*

The text beside the launcher. Empty shows none. At most 500 characters.

**subheading** `String!` *required*

The line under the main heading. At most 500 characters.

## Errors

Besides the [errors any request can return](https://developers.redo.com/docs/api-reference/v3/errors.md), this operation fails with these codes in `extensions.code`.

| Code | HTTP status | Meaning | Retry |
| - | - | - | - |
| `API_TOKEN_REQUIRED` | `403` | The credential has neither an API token nor a team member to attribute the change to, such as a first-party service's token, or is a merchant-app session, which can't make this write. Nothing was sent. | Call with a store API token, or with a credential that acts for a team member: the public MCP's, or a merchant-app session's for a write that accepts one. |
| `FORBIDDEN` | `403` | The team member the change is made for doesn't have the permission it needs. Nothing was written. | Ask a store admin to grant the permission, or call with a store API token. |
| `BAD_USER_INPUT` | `400` | An argument is invalid, or names something the store doesn't have. The message says which. Nothing was written. | Fix the input the message names, then send it again. |
| `NOT_FOUND` | `404` | An id the request refers to, other than its target, doesn't exist in the store. A missing target returns null instead. | Use an id that exists in the store. |
| `INSUFFICIENT_SCOPE` | `403` | The token lacks a scope the request needs: for a field, or for a part of the write the service decides from the record, such as a macro's internal note. The message names the scope. Nothing was written. | Use a token with the scope the message names, or leave out the part that needs it. |
| `INTERNAL_SERVER_ERROR` | `500` | Something failed on Redo's side. The change may or may not have been made. | Read the record to see whether the change was made before sending it again. A send with an idempotencyKey is safe to retry with the same key. |

## Example

```graphql theme={null}
mutation {
  supportChatWidgetGeneralUpdate(prompts: { ... }, quickActionFontSize: 10, quickActions: { ... }, selfServe: { ... }, setup: { ... }, style: { ... }, welcome: { ... }) {
    quickActionFontSize
  }
}
```


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