knoten / builtin / trigger
Context Menu
Run the flow from the browser context menu.
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Run a workflow from the browser’s right-click menu, with details of what you clicked.
Try it
Section titled “Try it”Save Page to Airtable Reading List: ein Workflow mit 3 Schritten, beginnend mit Right-click a page und endend mit Add a record to Airtable.
What it does
Section titled “What it does”An activated workflow with a Context Menu trigger shows up in the right-click menu under Agentic Workflow, then Personal Workflows (or Downloaded Workflows for ones you installed from the marketplace). The menu entry is the workflow’s name.
The entry only appears where it fits: on the kinds of content picked in Menu Contexts, and, when you set them, only on matching pages (Document URL Patterns) or matching links and media (Target URL Patterns). Clicking it runs the workflow from this trigger, with the clicked text, link or image and the page details as output.
A workflow can have several Context Menu triggers with different settings, for example one for selected text and one for links. Only the triggers that match what you clicked run.
When to use it
Section titled “When to use it”- Act on selected text: translate it, summarize it, save it, or send it to a chat.
- Act on a link: save it to a list or open it somewhere else.
- Act on an image: download it or send its address to a service.
- Run a workflow on the current page without opening AWFlow.
Inputs and settings
Section titled “Inputs and settings”| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Menu Contexts | Multiple choice | Options: Page, Selection, Link, Editable Field, Image, Video, Audio. Standard: Page |
| Document URL Patterns | List | Optional browser match patterns for the page URL. |
| Target URL Patterns | List | Optional browser match patterns for link, image, video, or audio targets. |
- Menu Contexts decides where you right-click. Page means a right-click on the page itself, Selection a right-click on selected text, Editable Field inside a text box, and so on.
- Document URL Patterns limits the entry to pages whose address matches, for example
https://*.wikipedia.org/*. Leave it empty to show it everywhere. - Target URL Patterns checks the address of the clicked link, image, video or audio instead, for example
https://*.youtube.com/*to only offer the entry on YouTube links.
Patterns use the form scheme://host/path with * as a wildcard; see Page Load for examples.
Outputs
Section titled “Outputs”-
Output
Each output item has these fields:
| Field | Typ | What it holds |
|---|---|---|
| triggerType | Always "contextMenu" | |
| triggeredAt | Text | |
| pageUrl | Text | |
| selectionText | Text | |
| linkUrl | Text | |
| srcUrl | Text | |
| frameUrl | Text | |
| editable | True/false | |
| mediaType | Text | |
| tabId | Number | |
| windowId | Number | |
| tabUrl | Text | |
| tabTitle | Text |
{ "triggerType": "contextMenu", "triggeredAt": "…", "pageUrl": "…", "selectionText": "…", "linkUrl": "…", "srcUrl": "…", "frameUrl": "…", "editable": true, "mediaType": "…", "tabId": 0, "windowId": 0, "tabUrl": "…", "tabTitle": "…"}Which fields are filled depends on what you clicked:
selectionText: the selected text (Selection).linkUrl: the address of the clicked link (Link).srcUrlandmediaType: the address and type (image,video,audio) of the clicked media.editable: true when you clicked inside a text field.pageUrl,tabTitle,tabId: the page and tab you were on.
Use them downstream, for example {{ $input.selectionText }}.
Dependencies and credentials
Section titled “Dependencies and credentials”None. This node needs no connection and has no slots for other nodes.
Example workflow
Section titled “Example workflow”Summarize selected text on any page:
- Add Context Menu with Menu Contexts set to Selection.
- Add Summarize with Text
{{ $input.selectionText }}and Length Short. - Add Browser Notification with Title
Summaryand Message{{ $input.summary }}. - Activate the workflow, select a paragraph on a page, right-click, and choose the workflow’s name.
Common issues
Section titled “Common issues”- The workflow is not in the right-click menu. Activate the workflow, then right-click and choose Get / Refresh Workflows so the menu picks up your changes. Also check that you right-clicked on the right kind of content: with only Page selected, the entry does not show on selected text or links.
- The entry shows, but clicking it does nothing. What you clicked did not match this trigger’s contexts or patterns (the menu can show the entry more broadly than each trigger allows when a workflow has several Context Menu triggers). Check Menu Contexts and both pattern lists.
selectionTextis empty. Selection is not in Menu Contexts, or you right-clicked outside the selected text.- It does not work in the web app. This node runs in the browser extension; install it and activate the workflow there.
Recipes with this node
Section titled “Recipes with this node”Related nodes
Section titled “Related nodes”- Hotkey: run from a keyboard shortcut instead.
- Get Selected Text: read the selection from a workflow started another way.
- Funnel: share the same steps between a Context Menu and other triggers.