Overview

This guide walks you through an example of using Spongecake to shop on Amazon. It covers how to:

  • Automate interactions with Amazon.
  • Handle user inputs and security checks.
  • Use handlers to manage agent statuses.

Notes on Prompting

  • When searching large pages (like Amazon results), the agent may scroll excessively or incorrectly.
    • If this happens, explicitly instruct the agent on how to scroll. For example:
    YOU SHOULD ONLY NEED TO SCROLL DOWN OR CLICK. NEVER DO ANYTHING ELSE.
  • If you anticipate roadblocks like captchas, guide the agent on how to handle themβ€”either ask the user to intervene or provide a workaround.
  • Always include a clear stopping condition in your prompt to help the agent understand when the task is complete.