Anakin icon

Anakin

Scrape websites, search with AI, and extract structured data

Actions108

AI Visibility → Wire: Run Write Action

AI-generated

Summary

Run a Wire action that changes state on a target website, such as submitting a form or adding an item to a cart, by specifying the action ID and its input parameters as JSON.

Inputs

  • Action ID (required) — The ID of the Wire action to run, obtained from prior Wire: Discover Actions or Wire: Browse Catalog operations (e.g., 'walmart.search_products').
  • Params (JSON) — Input parameters for the Wire action in JSON format. The required shape depends on the specific action. Leave empty if the action takes no parameters.
  • Credential ID — Credential ID used for authentication if the action's auth_mode is 'required'. Obtain credentials via Wire: List Identities or Wire: Sign In.
  • Identity ID — Alternative to Credential ID to select an identity from which credentials will be resolved.
  • Additional Options — Optional settings including 'Max Wait Time (Seconds)' to specify how long to wait for asynchronous completion (default 300s) and 'Poll Interval (Seconds)' to set the interval between status checks (default 3s).

Output shape

A single JSON object containing the action result, including success status, the action ID, job ID if the action runs asynchronously, and response details from the Wire API.

If the action runs synchronously, result data is returned immediately. For asynchronous actions, the operation polls the job status until completion or timeout. Failures throw errors with relevant messages. Use of Credential ID or Identity ID depends on the action's authentication requirements.

Examples

Example 1: Run a Wire write action to submit a form on a website requiring authentication.

Set 'Action ID' to the desired write action, provide 'Params (JSON)' with necessary input parameters, specify 'Credential ID' for authentication, and optionally adjust 'Max Wait Time' and 'Poll Interval'.

Links

Discussion