AI Request

Use the AI Request step to send a prompt to a connected AI provider and use the model's response in subsequent steps.

Use the AI Request step to send a prompt to a connected AI provider and use the model's response in subsequent steps.

Before you add this step, connect at least one AI provider on the Connectors page. See ../ai-connectors/ai-connectors.dita.

To add an AI Request step:

  1. Access Playblocks and go to Automations.
  2. Open your automation and click + to add a new step.
  3. Select Actions > AI Request.
  4. Click Add.

    The AI Request window appears.

  5. Enter these parameters:
    • Provider - The AI vendor to call. Only providers with a connected connector are selectable. Supported providers:

      • OpenAI

      • Google Gemini

      • Anthropic Claude

      If you do not connect a provider, an error directs you to the Connectors page.

    • Model - Read-only. Shows the model selected on the provider's connector. To change it, open the provider on the Connectors page and update the Model selection.

    • Question - The prompt to send to the model. Supports values from the outputs of previous steps.

    • Instructions - The system prompt that tells the model how to behave (role, format, constraints). Supports values from the outputs of previous steps.

    • Advanced options (optional):

      • Temperature - Controls response randomness. Value between 0 and 2. Lower values produce more deterministic output.

      • Max output tokens - Caps the response length. Integer between 1 and 128000.

  6. Click Create.

Using the Response

You can use the AI Request response in subsequent steps. In the smart-field selector, select the AI Request step as the source and select the output field (under text is the model response).