# Interactivity

### Handle User Interactions

Create workflows that trigger on these events:

* [**Node clicked**](/reactflow-for-bubble.io/element-reference/events.md#node-clicked) - When user clicks any node (example: show popup with node details)
* [**Node changed position**](/reactflow-for-bubble.io/element-reference/events.md#node-changed-position) - When user drags nodes (example: update X/Y coordinates in database)
* [**Edge added**](/reactflow-for-bubble.io/element-reference/events.md#edge-added)**/**[**removed**](/reactflow-for-bubble.io/element-reference/events.md#edge-removed) - When user creates/deletes connections (example: update relationships in database)
* [**Edge clicked**](/reactflow-for-bubble.io/element-reference/events.md#edge-clicked) - When user clicks any connection line (example: show connection properties dialog)
* [**Edge dropped on canvas**](/reactflow-for-bubble.io/element-reference/events.md#edge-dropped-on-canvas) - When user drags edge but drops it on empty space (example: create new node dynamically at drop location)

### Control the Chart

Use these actions in your workflows:

* [**Fit view**](/reactflow-for-bubble.io/element-reference/actions/fit-view.md) - Zoom to show all nodes perfectly
* [**Auto layout**](/reactflow-for-bubble.io/element-reference/actions/auto-layout.md) - Organize nodes with automatic layout
* [**Zoom in**](/reactflow-for-bubble.io/element-reference/actions/zoom-in.md)**/**[**out**](/reactflow-for-bubble.io/element-reference/actions/zoom-out.md) or [**Set zoom**](/reactflow-for-bubble.io/element-reference/actions/set-zoom.md) - Control zoom level precisely
* [**Set center**](/reactflow-for-bubble.io/element-reference/actions/set-center.md) - Pan to specific coordinates
* [**Export to JSON**](/reactflow-for-bubble.io/element-reference/actions/export-to-json.md) - Get complete chart state with all current positions and connections
* [**Clear graph**](/reactflow-for-bubble.io/element-reference/actions/clear-graph.md) - Remove all nodes and edges


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enhancio.gitbook.io/reactflow-for-bubble.io/guides/interactivity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
