Zoho: Get AB testing optimization suggestions
Zoho abTesting.getAbTestingSuggestions: arguments, response, policy and SDK examples.
← Ab testing operations · Get started
Operation zoho.getabtestingsuggestions
Provider route: GET /crm/v8/settings/AB_testing/{id}/actions/suggestions. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["abTesting"]["getAbTestingSuggestions"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.abTesting.getAbTestingSuggestions(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_zoho import ZohoIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.ab_testing.get_ab_testing_suggestions(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.id | string | Required within parent | Maximum length: 18 |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Get AB testing optimization suggestions — response body — AB testing suggestions |
$ (anyOf 2) | null | Alternative |
Referenced models: Get AB testing optimization suggestions — response body — AB testing suggestions
Schemas
Section titled “Schemas”Get AB testing optimization suggestions — response body — AB testing suggestions
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Successful response returned when retrieving AI-generated optimization suggestions for an AB test. Additional keys: not allowed |
AB_testing_suggestions | array | Required within parent | Represents the list of AI-generated optimization suggestions for the AB test. Maximum items: 1 |
AB_testing_suggestions[] | Model | Each item | Expand Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item |
Referenced models: Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item
Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an AI-generated optimization suggestion for an AB test, including the suggestion type and details. Additional keys: not allowed |
suggestion_details | Model | Required within parent | Expand Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details |
type | string | Required within parent | Represents the type of AI-generated suggestion for the AB test. Possible values: **split_suggestion** - A recommendation to adjust traffic allocation between forms. **extend_test** - A recommendation to continue the test for a longer period. Maximum length: 255 |
Referenced models: Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details
Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the detailed performance data for an AB test suggestion, including metrics for the base form and all variant forms. Additional keys: not allowed |
base_form | Model | Required within parent | Expand Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details base form |
variant_form | array | Required within parent | Represents the list of variant webforms included in the AB test suggestion details, each with their performance metrics. Maximum items: 2 |
variant_form[] | Model | Each item | Expand Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details variant form item |
Referenced models: Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details base form, Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details variant form item
Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details base form
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the base webform performance data in an AB test suggestion, including submission counts, visits, and traffic allocation. Additional keys: not allowed |
id | string | Required within parent | Represents the unique identifier of the base webform in the suggestion details. Maximum length: 255 |
no_of_submission | JSON | Required within parent | |
no_of_submission (anyOf 1) | integer | Alternative | Represents the total number of form submissions received by the base webform during the AB test. Format: int32 |
no_of_submission (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
no_of_visits | JSON | Required within parent | |
no_of_visits (anyOf 1) | integer | Alternative | Represents the total number of visitor sessions on the base webform during the AB test. Format: int32 |
no_of_visits (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
traffic | JSON | Required within parent | |
traffic (anyOf 1) | integer | Alternative | Represents the percentage of visitor traffic currently allocated to the base webform. Format: int32 |
traffic (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
underperforming_variant | boolean | Required within parent | Indicates whether the base form is identified as the underperforming variant in the AB test. Possible values: **true** - The base form is underperforming. **false** - The base form is not underperforming. |
Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details variant form item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the variant webform performance data in an AB test suggestion, including submission counts, visits, traffic, and conversion rate. Additional keys: not allowed |
conversion_rate | JSON | Required within parent | |
conversion_rate (anyOf 1) | integer | Alternative | Represents the conversion rate of the variant webform during the AB test, as a percentage. Format: int32 |
conversion_rate (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
id | string | Required within parent | Represents the unique identifier of the variant webform in the suggestion details. Maximum length: 255 |
name | string | Required within parent | Represents the name of the variant webform. Maximum length: 255 |
no_of_submission | JSON | Required within parent | |
no_of_submission (anyOf 1) | integer | Alternative | Represents the total number of form submissions received by the variant webform during the AB test. Format: int32 |
no_of_submission (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
no_of_visits | JSON | Required within parent | |
no_of_visits (anyOf 1) | integer | Alternative | Represents the total number of visitor sessions on the variant webform during the AB test. Format: int32 |
no_of_visits (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
traffic | JSON | Required within parent | |
traffic (anyOf 1) | integer | Alternative | Represents the percentage of visitor traffic currently allocated to the variant webform. Format: int32 |
traffic (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
underperforming_variant | boolean | Required within parent | Indicates whether the variant form is identified as underperforming in the AB test. Possible values: **true** - The variant form is underperforming. **false** - The variant form is not underperforming. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getabtestingsuggestions. Catalog operation: getAbTestingSuggestions. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
No-content response statuses: [204]