Skip to content

Agent scenarios

These scenarios show how to organize an agent workflow. Use fictional or approved test data, and confirm the available agent, sandbox, knowledge, and connection options in your environment before you begin.

Use this pattern when an agent needs to inspect a repository as part of a larger workflow.

  1. Prepare an authorized test repository and the input you want the agent to inspect. Use a connection with the minimum access needed.
  2. Create a workflow and add a Managed agent. Review its managed model and configure the available sandbox and repository settings.
  3. Give the agent a specific task, such as summarizing a small code change and identifying questions for a reviewer.
  4. Add a later workflow action to use the agent’s output, and review the workflow before testing it.
  5. Inspect the agent and tool details in run history. Check the output and any external effects before using the result.

For setup guidance, see Choose an agent and Sandbox setup overview.

Use this pattern when a task needs both reference material and a code-capable environment. First confirm that an agent in your environment offers the knowledge and sandbox settings needed for the task.

  1. Prepare a knowledge source and confirm that its owner permits the agent to use the information.
  2. Configure the agent’s available knowledge and sandbox settings. Give it only the access and files needed for the task.
  3. Ask a specific question that identifies the expected result and the information the agent should use.
  4. Review the agent’s output and the available run details. Check the answer against the source before acting on it.

For setup guidance, see Knowledge setup overview and Sandbox setup overview.