mirror of
https://github.com/actionbook/actionbook.git
synced 2026-09-19 03:28:06 +08:00
22fd6b2ebc
Fix P1 from review: dify-plugin comments referenced deleted actionbook-rs paths. Also remove "v2" from IFRAME_DESIGN.md.
Actionbook for Dify
Actionbook is a browser action engine for AI agents. This Dify plugin brings Actionbook's up-to-date action manuals, verified selectors, and cloud browser automation into Dify workflows so agents can operate websites with less guessing and more resilience.
What This Plugin Provides
| Tool | Description | Best For |
|---|---|---|
search_actions |
Search Actionbook action manuals by keyword and optional domain | Finding relevant website actions and UI areas |
get_action_by_area_id |
Retrieve full action details, including verified selectors and supported interaction methods | Getting precise page structure before automation |
browser_create_session |
Start a cloud browser session via Hyperbrowser | Beginning a live browser workflow |
browser_operator |
Navigate, click, fill, type, wait, snapshot, and extract content | Executing browser steps on a live page |
browser_stop_session |
Stop the browser session and release resources | Cleaning up at the end of automation |
Why Use Actionbook in Dify
- Bring structured website knowledge into your workflow with Actionbook action manuals instead of relying only on raw HTML or guessed selectors.
- Combine verified selectors with live browser automation for more reliable multi-step tasks.
- Help agents browse faster by starting from pre-indexed actions instead of exploring the DOM from scratch.
- Use accessibility snapshots as a fallback when a page has changed or a selector no longer works.
Credentials
Actionbook API Key (Optional)
The Actionbook API key is used for search_actions and get_action_by_area_id. You can leave it empty and use the free tier with basic limits, or add a key for higher quotas.
- Get a key from actionbook.dev
- Manage keys at Dashboard > API Keys
Hyperbrowser API Key (Required for Browser Tools)
The Hyperbrowser API key is required for live browser automation:
browser_create_sessionbrowser_operatorbrowser_stop_session
Get your key from Hyperbrowser.
Recommended Workflow
Typical best-practice workflow:
search_actions("github login", domain="github.com")get_action_by_area_id("<area_id from search_actions>")browser_create_session()browser_operator(session_id=..., cdp_url=<ws_endpoint from browser_create_session>, action="navigate", url="https://github.com/login")browser_operator(session_id=..., cdp_url=..., action="fill", selector="<verified selector from get_action_by_area_id>", text="user@example.com")browser_operator(session_id=..., cdp_url=..., action="click", selector="<verified selector from get_action_by_area_id>")browser_operator(session_id=..., cdp_url=..., action="wait_navigation")orbrowser_operator(session_id=..., cdp_url=..., action="get_text")browser_stop_session(session_id=...)
How this maps to the actual tool behavior:
search_actionsandget_action_by_area_idare the recommended way to get verified selectors first, but they are not a hard prerequisite forbrowser_operator.browser_operatoraccepts eithersession_idorcdp_url; for multi-step workflows, passsession_idand preferably both for session recovery.browser_create_sessionreturnsws_endpoint, which should be passed tobrowser_operatorascdp_url.snapshotis a fallback step when selectors fail or page state changes, not a mandatory success-path step.browser_stop_sessionshould be called afterbrowser_create_sessionworkflows to release the remote session and persist profile state when applicable.
Example Use Cases
- Search or filter content on dynamic web apps
- Combine Actionbook search/get tools with browser automation for agentic task execution
- Recover from selector drift by taking a fresh
snapshotand continuing the workflow
Open Source & Community
Actionbook is open source and improving fast. Start here to support the project, join the community, and shape what gets indexed next.
- GitHub: Star the project or contribute to Actionbook. github.com/actionbook/actionbook
- Discord: Join us to discuss questions, workflows, and ideas. Join Discord
- Request a Website: Tell us which websites you want Actionbook to index. actionbook.dev/request-website
- X / Twitter: Follow us for the latest updates and launches. @ActionbookHQ
- Website: Get the latest overview. actionbook.dev