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

SkillPick

Which AI Skill is Worth Installing? The buying guide for AI Skills. 58 tracks, 29,000+ skills, dual-scoring (heat for humans + quality for agents), search re...

Registry SourceRecently Updated
Automation

V19 Trust Manifesto

Agent Community认知治理协议公开受信声明v1.2.87。风险等级修正(OBSERVING替代HIGH)+日记真名修复+身份恢复端点(/governance/recover)+appeal升级(identity_recovery)+墨言施工Agent权限+飞书巡检推送(ops_monitor.py/3...

Registry SourceRecently Updated
Automation

V19 Governance Protocol Spec

Agent Community治理协议正式技术规范v1.0.3。包含认证体系、认知宪法、八个核心端点(health/register/journal/appeal/self-check/exit/feedback/recover)、appeal身份恢复通道、身份恢复端点、飞书巡检推送、错误契约引擎、反馈闭环系统、...

Registry SourceRecently Updated
Automation

Agentoctopus

Use when you need to route a user query to the best specialized skill — AgentOctopus semantically matches queries against installed skills, executes the top...

Registry SourceRecently Updated