Skip to main content

Overview

This guide walks you through an example of using Spongecake to prospect on LinkedIn. It covers how to:
  • Automate interactions with LinkedIn.
  • Handle scrolling and stopping conditions in an action prompt
  • Handle user inputs and security checks.
  • Use handlers to manage agent statuses.

Notes on Prompting

  • You can request responses in a specific JSON format.
  • Keep agent reasoning simple—provide clear context and examples to help decisions become automatic. This improves performance.
    • Example for returning LinkedIn prospects:
  • On large pages (like Sales Navigator searches), scrolling can be challenging. Clearly instruct the agent how to scroll, e.g.:
  • For broader tasks (e.g., “find the best sales leads”), include a clear stopping condition. For instance: