1. Understanding agents

Available actions in the workflow editor

The following actions are available in the workflow editor organized by category. Each action represents a step in a workflow that an agent executes to complete a task.

Configuring actions

Each action must be configured before the workflow can run. This includes selecting the action type and defining its inputs, outputs, and settings.

The available configuration in the Properties pane vary by action type. Most actions include the following settings.

  • Input and Output variables - define how data enters the step and how results are passed to the next step.

    Example: Use researchResult as input and store the output as generatedPost.

  • Model settings - select the model that processes the request based on speed, quality, or complexity requirements.

    Example: Choose a Fast model for drafts.

  • Message template - defines how user inputs are converted into instructions for the AI. See best practices for writing prompts for guidance.

    Templates typically include placeholders that are replaced with workflow variables (for example, {{topic}}, {{target_audience}}). They can vary between actions depending on the task.

    Example: Write a LinkedIn post for a {{target_audience}} about {{topic}}.

  • System prompt - provides high-level instructions that guide how the AI behaves, including tone, rules, or constraints. See best practices for writing prompts for guidance.

    Example: You are a senior B2B marketing strategist. Keep the tone professional and concise.

  • Schema and HTML template selection - select the structured output format and how it is rendered in preview.

  • Artifact and Storage Settings - configure how generated content is saved and identified.

    Example: Save the output as text, image, or content item.

Example: Configuring an Invoke Agent action

This example demonstrates how to configure an Invoke Agent action to reuse the capabilities of a standard agent with skills within a workflow.

The Invoke Agent action allows you to call an existing standard agent as a subagent, enabling you to leverage its custom and system skills, logic, and configurations instead of recreating them. This is useful for modular workflows where existing agents can be reused across multiple processes.

Configuration:

  • Agent - select the standard agent you want to reuse (for example, Customer Feedback Sentiment)

  • Message - the input passed to the invoked agent. For example, when this is the first action after the trigger, you can pass the user’s input directly.

  • Model Override - use the agent’s default model or override it if needed.

  • Output - the response returned by the invoked agent, which can be used in subsequent workflow steps. Ensure this variable matches the input for your next step.

Example: Configuring an HTTP Request action

This example expands on the X Single Tweet Generator example that includes an HTTP Request action to send generated content to an external endpoint, such as a mock API or a live platform (for example, Twitter/X or Reddit) using credentials.

The HTTP Request action retrieves the generated tweet from the previous step and sends it to the specified endpoint as a JSON payload.

Configuration:

  • HTTP Method - POST (used to send the generated content to an API)

  • URL - the destination endpoint where the request will be sent.

    For testing, you can use a mock endpoint such as: https://webhook.site/<your-webhook-id>.

    For production, replace this with a real API endpoint (for example, Twitter/X API).

  • Headers - define request metadata, typically including content type and authentication.

    {
      "Authorization": "Bearer <your_token>",
      "Content-Type": "application/json"
    }
  • Body (JSON) – the payload sent to the API. This is where you pass data from previous workflow steps using variables. Ensure the variable correctly maps to the output of the generation step.

    {
      "text": "{{generate_content.generatedContent.text}}"
    }

Example: Configuring an Invoke Tool action

This example demonstrates how to configure an Invoke Tool action to call a Agent API endpoint within a workflow to perform SitecoreAI actions.

The Invoke Tool action sends the provided paramaters to the selected tool (for example, Get Content), which executes its defined logic (such as retrieving content or processing data). The tool’s response is then returned to the workflow and can be used in downstream steps.

Configuration:

  • Tool - select the tool to execute (for example, Get Content)

  • Parameters (JSON) - Define the input parameters required by the selected tool. If the tool does not require parameters (GET requests), this can remain empty:

    {}
  • Output - The result returned by the tool, which can be used in subsequent workflow steps. Ensure this variable is correctly referenced in the next step's input.

If you have suggestions for improving this article, let us know!