Using the Scratchpad
The Scratchpad is a rapid prototyping environment for testing prompts, iterating on agent behavior, and drafting workflow chains before committing them to production workflows.
Prerequisites
- Cloud Getting Started completed
- At least one agent created
Overview
The Scratchpad provides:
| Feature | Description |
|---|---|
| Canvas | Freeform workspace for organizing prompt experiments |
| Draft execution | Run prompts without creating formal Lenses |
| Prompt testing | Test prompt variations side-by-side |
| Version history | Track changes to your experiments |
| Context management | Attach files, URLs, and data to prompts |
Getting started
- Navigate to your AI Lenser profile → Scratchpad tab
- The canvas opens with an empty workspace
- Use the toolbar to add elements
Canvas interaction
Adding elements
| Element | Purpose | How to add |
|---|---|---|
| Prompt block | A text prompt to execute | Click + on toolbar |
| Result block | Shows execution output | Auto-created after run |
| Note | Freeform text annotation | Right-click → Add Note |
| File attachment | Attach context files | Drag and drop onto canvas |
Navigation
| Action | Gesture |
|---|---|
| Pan | Click + drag on background |
| Zoom | Scroll wheel or pinch |
| Select | Click on element |
| Multi-select | Shift + click |
| Delete | Select + Backspace |
Draft execution
Running a prompt
- Create a Prompt block
- Write your prompt text
- Select an agent from the dropdown
- Click Run
- The output appears in a connected Result block
Comparing outputs
Run the same prompt with different:
- Models — compare GPT-4o vs Claude side-by-side
- Prompts — test variations of the same instruction
- Parameters — try different input values
Prompt testing workflow
Iteration cycle
1. Write prompt variant A
2. Run with Agent X → observe output
3. Modify prompt → variant B
4. Run with Agent X → compare
5. Try with Agent Y → cross-model comparison
6. Pick the best → promote to LensPromoting to a Lens
When you find a prompt that works well:
- Click the Promote to Lens button on the Prompt block
- The Lens creation dialog opens pre-filled with your prompt
- Define parameters using
[[param]]syntax - Set metadata and visibility
- Click Publish
Context management
Attaching context
Add context to your prompts:
- Files — drag documents, code files, or data files onto the canvas
- URLs — paste a URL to fetch and attach its content
- Previous outputs — connect a Result block as context for the next prompt
Workbench context
The Scratchpad maintains a shared context workspace:
| Context type | Persistence | Scope |
|---|---|---|
| Session context | Current session | This scratchpad only |
| Pinned context | Permanent | Across sessions |
| Agent memory | Agent-level | All runs for this agent |
Running automation chains
Chain multiple prompts together in the Scratchpad:
- Create Prompt A
- Run it → Result A appears
- Create Prompt B that references Result A:
Based on the following analysis: {{result_a}} Now provide recommendations... - Run Prompt B → Result B appears
- Continue chaining as needed
When the chain is validated, promote the entire sequence to a formal Workflow.
Version control
Auto-save
The Scratchpad auto-saves every 30 seconds and on significant changes.
Viewing history
- Click the History icon in the toolbar
- Browse timestamped snapshots
- Click any snapshot to preview
- Click Restore to revert to that state
Comparing versions
Select two history entries to see a diff of:
- Added/removed prompt blocks
- Changed prompt text
- Different execution results
Best practices
- Use descriptive labels — name your prompt blocks clearly
- Keep experiments focused — one hypothesis per scratchpad session
- Document findings — use Note blocks to record observations
- Promote winners — move validated prompts to Lenses promptly
- Clean up — archive completed experiments
Next steps
- Building Workflows — formalize your scratchpad chains
- Creating AI Agents — configure agents for better results
- Team Collaboration — share scratchpads with teammates