asksteps: statistics for one published form
asksteps_get_form_statsReturns visits, completions and drop-off for one published form. Requires "forms:read". Get the publication id from asksteps_list_forms first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Time range: "7d", "30d" or "90d". Defaults to 30 days. | |
| publication_id | Yes | The publication id, as returned by asksteps_list_forms. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | One sentence for the user. Empty when there is nothing to say. | |
| stats | No | Visits, completions and drop-off for the publication, plus what these numbers are worth (field "notes"). Absent unless status is "ok". | |
| status | Yes | Outcome. One of: "ok", "not_connected", "not_found" (no statistics for this publication id). Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "owner_required" (only the account owner may do this), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. |