Invoke agent to generate a response

This example pipeline demonstrates how to send a prompt and invoke the agent to generate a response.

Prerequisites

  1. Configure the Invoke Agent Snap to invoke the specified agent and prompt as shown below.

    Invoke Agent config

  2. Validate the Snap.
    On validation, the Snap invokes the agent and gets the response of the top five cars with their price.
    Invoke Agent output
To reuse the example pipelines:
  1. Download and import the SLP file into your Environment.
  2. Configure Snap accounts.
  3. Provide Pipeline parameters, if any.