Skip to main content

Overview

The reaction_to_connector_strategy prompt guides AI agents through converting Figma prototype reactions (interactions) into visual connector lines using FigJam-style connectors. This creates a visual representation of prototype flows directly on the canvas.

When to Use

Use this prompt when:
  • Visualizing prototype interaction flows
  • Creating flow diagrams from prototypes
  • Documenting navigation paths
  • Generating user journey maps from prototypes
  • Converting interaction logic to visual diagrams

Process Overview

Step 1: Preparation & Context Gathering

Get node context and set up default connector:
What You Need:
  • A FigJam connector pasted onto the Figma page
  • The connector can be styled however you want (color, thickness, arrow style)
  • Once set, this connector style will be used for all generated connections

Step 2: Get Reactions Data

Retrieve prototype reactions:

Step 3: Filter Valid Reactions

Keep only reactions that create connections:
Ignored Action Types:
  • CHANGE_TO - State changes within component
  • CLOSE_OVERLAY - Closes overlays without navigation
  • BACK - Goes to previous screen
  • SET_VARIABLE - Variable manipulation

Step 4: Generate Connector Labels

Create descriptive labels for each connection:
Example Labels:
  • “On click, navigate to Home Screen”
  • “On hover, open overlay Settings Panel”
  • “After delay, navigate to Next Page”

Step 5: Prepare Connections Array

Format data for the create_connections tool:

Step 6: Execute Connection Creation

Create the connector lines:

Complete Example

Setup Instructions

Creating the Default Connector

  1. Open FigJam (File → New FigJam file or use existing)
  2. Create a connector with your desired style:
    • Color
    • Thickness
    • Arrow style
    • Line style (solid, dashed, etc.)
  3. Copy the connector (Cmd/Ctrl + C)
  4. Return to Figma design file
  5. Paste the connector (Cmd/Ctrl + V) onto the page
  6. Select the pasted connector
  7. Set as default:

Updating the Default Connector

To change the connector style:
  1. Copy a different styled connector from FigJam
  2. Paste it onto the Figma page
  3. Select it
  4. Call set_default_connector() again

Common Patterns

Overlay Flow

Hover Interaction

Error Handling

No Default Connector

Missing Destination Nodes

No Reactions Found