Skip to documentation

Create, test and assign a business action

Add a product button or let a customer use a standalone tool, such as an order lookup.

On this page

Choose a product button or standalone tool

  1. Open Commerce → Business actions and choose Create action. For a button on a product card, use Product action, select an Action key such as VIEWDETAILS and enter its Button Label. Use the product link or destination shown for that key.
    Business actions toolbar with Create action outlined beside Import actions.
    Choose Create action to define the button label, scope and destination for one action.
  2. For a tool such as an order lookup, choose Standalone API tool. Describe when the assistant should use it and add trigger phrases a customer might say. Configure the confirmation policy and any required customer authentication.
    Action editor showing the Action Scope selector with Product action selected.
    Open Action Scope and choose Standalone API tool for a lookup that visitors can request in chat.
  3. For an API request, choose the HTTP method and approved endpoint. Under Request parameters & response mapping, declare the expected inputs and select only response fields the assistant should use, such as an order status.

Test the draft and review the result

  1. In Test API request, use a test endpoint and sample values. For a product action, select a sample product or use the linked product. If the action requires authentication, enter a test customer bearer token.
  2. For a request that can change provider data, use the provider’s test environment and select the checkbox acknowledging the change. Each press of Send test request can send a new request.
  3. Select Send test request. Inspect Attempted or Stopped before sending, the provider status, duration and redacted response. If you change the draft or sample data, run the test again. Set the customer-facing success and error messages, then choose Save action.

Make the action available

  1. For a product button, open Product assignments, find the item and choose Manage. Select the button and choose Save changes. The row shows the number of assigned actions. Reopen Manage and check that the button you selected is marked Assigned.
    Business actions navigation with the Product assignments tab outlined.
    Open Product assignments, find the item, and choose Manage to see which buttons it offers.
  2. If Manage shows No product actions available, choose Create a product action in that dialog. Standalone tools run in chat. If the dialog says assignments couldn’t load, close it and reopen Manage to retry.

Import a set of actions

  1. Open Business actions → Import actions. Choose Load example to see the JSON array format. Enter your action definitions, review the destinations and product assignment settings, and keep credentials out of the JSON.
  2. Turn on Overwrite existing actions (same ActionType) only for updates you intend to apply. Choose Import All and check the created, updated, skipped and failed totals.
  3. Check Result, Assigned to and Note for each action. Correct failed entries individually and confirm any product buttons in Product assignments.