Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentMaximum length: 18

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Get AB testing optimization suggestions — response body — AB testing suggestions
$ (anyOf 2)nullAlternative

Referenced models: Get AB testing optimization suggestions — response body — AB testing suggestions

Get AB testing optimization suggestions — response body — AB testing suggestions
FieldTypePresenceDescription and constraints
$objectRootSuccessful response returned when retrieving AI-generated optimization suggestions for an AB test.
Additional keys: not allowed
AB_testing_suggestionsarrayRequired within parentRepresents the list of AI-generated optimization suggestions for the AB test.
Maximum items: 1
AB_testing_suggestions[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents an AI-generated optimization suggestion for an AB test, including the suggestion type and details.
Additional keys: not allowed
suggestion_detailsModelRequired within parentExpand Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details
typestringRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the detailed performance data for an AB test suggestion, including metrics for the base form and all variant forms.
Additional keys: not allowed
base_formModelRequired within parentExpand Get AB testing optimization suggestions — response body — AB testing suggestions AB testing suggestions item suggestion details base form
variant_formarrayRequired within parentRepresents the list of variant webforms included in the AB test suggestion details, each with their performance metrics.
Maximum items: 2
variant_form[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the base webform performance data in an AB test suggestion, including submission counts, visits, and traffic allocation.
Additional keys: not allowed
idstringRequired within parentRepresents the unique identifier of the base webform in the suggestion details.
Maximum length: 255
no_of_submissionJSONRequired within parent
no_of_submission (anyOf 1)integerAlternativeRepresents the total number of form submissions received by the base webform during the AB test.
Format: int32
no_of_submission (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
no_of_visitsJSONRequired within parent
no_of_visits (anyOf 1)integerAlternativeRepresents the total number of visitor sessions on the base webform during the AB test.
Format: int32
no_of_visits (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
trafficJSONRequired within parent
traffic (anyOf 1)integerAlternativeRepresents the percentage of visitor traffic currently allocated to the base webform.
Format: int32
traffic (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
underperforming_variantbooleanRequired within parentIndicates 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the variant webform performance data in an AB test suggestion, including submission counts, visits, traffic, and conversion rate.
Additional keys: not allowed
conversion_rateJSONRequired within parent
conversion_rate (anyOf 1)integerAlternativeRepresents the conversion rate of the variant webform during the AB test, as a percentage.
Format: int32
conversion_rate (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentRepresents the unique identifier of the variant webform in the suggestion details.
Maximum length: 255
namestringRequired within parentRepresents the name of the variant webform.
Maximum length: 255
no_of_submissionJSONRequired within parent
no_of_submission (anyOf 1)integerAlternativeRepresents the total number of form submissions received by the variant webform during the AB test.
Format: int32
no_of_submission (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
no_of_visitsJSONRequired within parent
no_of_visits (anyOf 1)integerAlternativeRepresents the total number of visitor sessions on the variant webform during the AB test.
Format: int32
no_of_visits (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
trafficJSONRequired within parent
traffic (anyOf 1)integerAlternativeRepresents the percentage of visitor traffic currently allocated to the variant webform.
Format: int32
traffic (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
underperforming_variantbooleanRequired within parentIndicates 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.

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]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.