Zoho: Get optimization suggestions for a webform
Zoho webforms.getWebformSuggestions: arguments, response, policy and SDK examples.
← Webforms operations · Get started
Operation zoho.getwebformsuggestions
Provider route: GET /crm/v8/settings/webforms/{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["webforms"]["getWebformSuggestions"]>[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.webforms.getWebformSuggestions(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.webforms.get_webform_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 optimization suggestions for a webform — response body — webform suggestions |
$ (anyOf 2) | null | Alternative |
Referenced models: Get optimization suggestions for a webform — response body — webform suggestions
Schemas
Section titled “Schemas”2 more schemas are linked from the tables above, on the schema pages.
Get optimization suggestions for a webform — response body — webform suggestions
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a successful response for webform suggestions, containing the list of improvement suggestions. Additional keys: not allowed |
webform_suggestions | array | Required within parent | Contains the list of webform suggestion objects for improving the webform's performance. Maximum items: 1 |
webform_suggestions[] | Model | Each item | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item |
Referenced models: Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a webform suggestion object, including the suggestion type and details. Additional keys: not allowed |
suggestion_details | Model | Required within parent | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details |
type | string | Required within parent | Represents the type classification of the webform suggestion. Maximum length: 255 |
Referenced models: Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of a webform suggestion, including the reason and suggested variant information. Additional keys: not allowed |
reason | Model | Required within parent | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details reason |
suggested_variant_info | Model | Required within parent | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info |
Referenced models: Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details reason, Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details reason
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the reason data for a webform suggestion, including the conversion rate and list of low-filled fields. Additional keys: not allowed |
conversion_rate | string | Required within parent | Represents the conversion rate of the webform, indicating the percentage of visitors who submitted the form. Maximum length: 255 |
low_filled_rate_fields | array | Required within parent | Contains the list of CRM fields with low form-fill rates, used to identify underperforming fields on the webform. Maximum items: 2 |
low_filled_rate_fields[] | Model | Each item | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details reason low filled rate fields item |
Referenced models: Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details reason low filled rate fields item
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the suggested configuration for a variant webform, including button attributes, fields, and form attributes. Additional keys: not allowed |
button_attributes | array | Required within parent | Contains the list of button attribute configurations suggested for the variant webform. Maximum items: 2 |
button_attributes[] | Model | Each item | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info button attributes item |
fields | array | Required within parent | Contains the list of field configurations suggested for the variant webform. Maximum items: 2 |
fields[] | Model | Each item | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info fields item |
form_attributes | Model | Required within parent | Expand Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info form attributes |
Referenced models: Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info button attributes item, Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info form attributes, Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info fields item
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details reason low filled rate fields item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a CRM field with a low form-fill rate, used in webform improvement suggestions. Additional keys: not allowed |
api_name | string | Required within parent | Represents the API name of the CRM field with a low form-fill rate. Maximum length: 255 |
field_label | string | Required within parent | Represents the display label of the CRM field with a low form-fill rate. Maximum length: 255 |
id | string | Required within parent | Represents the unique identifier of the CRM field with a low form-fill rate. Maximum length: 255 |
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info button attributes item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the button attribute configuration retrieved for the webform, including the button name and color. Additional keys: not allowed |
color | string | Required within parent | Specifies the color applied to the button element within the webform. Maximum length: 255 |
name | string | Required within parent | Represents the internal name identifier of the button attribute within the webform. Maximum length: 255 |
Get optimization suggestions for a webform — response body — webform suggestions webform suggestions item suggestion details suggested variant info form attributes
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the visual configuration retrieved for the webform, including color, width, alignment, and font attributes. Additional keys: not allowed |
align | string | Required within parent | Specifies the horizontal alignment of the webform content. Maximum length: 255 |
color | string | Required within parent | Specifies the background color of the webform. Maximum length: 255 |
font_attributes | Model | Required within parent | Expand Retrieve a webform by ID — response body — webforms webforms item form attributes font attributes |
width | JSON | Required within parent | |
width (anyOf 1) | integer | Alternative | Specifies the width of the webform in pixels. Format: int32 |
width (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Retrieve a webform by ID — response body — webforms webforms item form attributes font attributes
Retrieve a webform by ID — response body — webforms webforms item form attributes font attributes
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the font attribute settings applied to the webform text, including font size, color, and family. Additional keys: not allowed |
color | string | Required within parent | Specifies the font color applied to the text in the webform. Maximum length: 255 |
family | string | Required within parent | Specifies the font family applied to the text in the webform. Maximum length: 255 |
size | JSON | Required within parent | |
size (anyOf 1) | integer | Alternative | Specifies the font size applied to the text in the webform. Format: int32 |
size (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getwebformsuggestions. Catalog operation: getWebformSuggestions. 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]