web-chat

Use when the user wants to interact with Google Gemini or ChatGPT via browser automation. Triggers on phrases like "ask Gemini", "ask ChatGPT", "ask GPT", "让 Gemini", "让 ChatGPT", "问一下 Gemini", "问一下 ChatGPT", "用 Gemini 查", "用 GPT 查". Sends the user's query to the target chatbot and returns the response verbatim.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "web-chat" with this command: npx skills add ljie-PI/web-chat

Web Chat

Send messages to AI chatbots (Gemini, ChatGPT) via Playwright browser automation and return responses with citations.

ChatbotScriptWebsite
Google Geminiscripts/ask_gemini.pygemini.google.com
ChatGPTscripts/ask_chatgpt.pychatgpt.com

Workflow

Step 1: Ensure Chrome is Running with CDP

If the script fails to connect (Chrome not running or no --remote-debugging-port), start Chrome:

{baseDir}/scripts/start_chrome.sh

The start script has built-in locking and CDP detection to handle concurrent starts safely. It launches Chrome with --remote-debugging-port=9222 and --user-data-dir=~/.openclaw/workspace/chrome_profile. Login sessions persist across restarts.

Step 2: Choose Chatbot and Extract Query

Choose chatbot: Use the one the user names ("ask Gemini", "用 ChatGPT 查"). "GPT" means ChatGPT. Default to Gemini if unspecified.

Extract query: Strip only the trigger prefix. Do NOT rephrase, translate, summarize, or add context. Pass the rest verbatim:

User saysExtracted query
"ask Gemini what is MCP protocol""what is MCP protocol"
"问一下 ChatGPT,transformer 的注意力机制怎么工作""transformer 的注意力机制怎么工作"
"用 GPT 查一下 React 19 有什么新特性""React 19 有什么新特性"

Step 3: Send the Query

# Gemini
{baseDir}/.venv/bin/python3 {baseDir}/scripts/ask_gemini.py "extracted query"

# ChatGPT
{baseDir}/.venv/bin/python3 {baseDir}/scripts/ask_chatgpt.py "extracted query"
FlagDescriptionDefault
--port PORTChrome CDP port9222
--timeout SECSMax wait for response120
--new-chatForce new chat sessionfalse
--jsonJSON outputfalse

Return the script output to the user VERBATIM. Do NOT summarize, rephrase, translate, or otherwise alter the response. Present the full, unmodified text exactly as the script printed it.

Error Handling

ErrorAction
"Cannot connect to Chrome on port 9222"Run {baseDir}/scripts/start_chrome.sh (has built-in lock and CDP check), wait 5 seconds, retry. Do NOT kill Chrome manually.
"You are not logged in"Inform user to log in manually in the Chrome window
"Could not find input field"Selectors may be outdated; inform user the script may need updating
Response timeoutRetry with --timeout 300

Rebuilding .venv

cd {baseDir} && rm -rf .venv && python3 -m venv .venv && .venv/bin/pip install -r requirements.txt

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Ai Agent Builder

快速构建和部署支持多工具集成与记忆管理的自定义 AI Agent,适用于客服、数据采集和研究自动化。

Registry SourceRecently Updated
Automation

GolemedIn MCP

Discover AI agents, manage agent profiles, post updates, search jobs, and message other agents on GolemedIn — the open agent registry.

Registry SourceRecently Updated
Automation

Agent HQ

Deploy the Agent HQ mission-control stack (Express + React + Telegram notifier / Jarvis summary) so other Clawdbot teams can spin up the same board, high-priority watcher, and alert automation. Includes setup, telemetry, and automation hooks.

Registry SourceRecently Updated
41.1K
Profile unavailable