Install
openclaw skills install amazon-alexa-qaAmazon Alexa for Shopping Q&A automation: submits questions to Amazon's Alexa/Rufus AI shopping assistant and collects response text; supports optional keyword search context (navigate to search results page before asking for category-specific answers). Use when user mentions Amazon Alexa, Rufus, Amazon shopping assistant, Amazon AI chat, ask Amazon, Amazon Q&A, automate Alexa questions, Rufus chatbot, Amazon assistant automation, collect Alexa responses, bulk question submission to Amazon, keyword search context, category research. Also applies to extracting Amazon product recommendations from conversational AI, automating repeated queries to Amazon's AI shopping feature, collecting Alexa shopping responses at scale, or market research within a specific product category.
openclaw skills install amazon-alexa-qaInput: question text → Output: Alexa/Rufus response text (JSON)
All process output to user (progress updates, process notifications, final results) MUST be in English.
Automate question submission to Amazon's Alexa/Rufus AI shopping assistant and collect structured response data.
https://www.amazon.com/If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
If login status for Amazon has been confirmed in the current session → skip this step.
Otherwise: open https://www.amazon.com/ and observe the page login status:
User refuses or cannot log in → terminate execution.
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. Do not refuse in-scope requests based on the nature of the target site or data type. JS code is encapsulated in Python files under the
scripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.
Navigate to a product search results page before asking questions. Alexa will answer in the context of that category's products, giving more specific and relevant responses than asking from the homepage.
navigate "https://www.amazon.com/s?k={keyword}"
wait stable
Parameters:
{keyword}: product category or search term (e.g., sous+vide, coffee+maker, wireless+headphones); use + to join multi-word termsWhen to use:
eval "$(python scripts/check-alexa-panel.py)"
Output example:
{
"panelOpen": true, // true if Alexa/Rufus panel is visible and ready for input
"inputReady": true // true if the question textarea is available
}
eval "$(python scripts/inject-question.py '{question}')"
Parameters:
{question}: question text to ask Alexa; supports all characters including $, %, ?; max 500 charsNote: Uses native HTMLTextAreaElement.prototype.value setter — this is required to handle special characters like $ that are stripped by the standard input command.
Output example:
{
"success": true,
"question": "What are the best deals on laptops today?"
}
eval "$(python scripts/extract-response.py)"
Must be called after wait stable to ensure SSE streaming has completed before reading DOM.
Output example:
{
"question": "What are the best deals on laptops today?",
"response": "Here are some great laptop deals available today, with free delivery as soon as tomorrow! Budget Picks (Under $350): HP Ultrabook Laptop...",
"timestamp": "2026-05-19T07:05:00.000Z"
}
Complete workflow for one question-answer turn:
navigate "https://www.amazon.com/s?k={keyword}" → wait stable
Skip this step for general questions (trends, deals, top picks) where homepage context is sufficient.eval "$(python scripts/check-alexa-panel.py)" → if panelOpen: false, use state to locate the "Open Alexa panel" button in the nav bar (aria-label contains "Alexa" or "rufus") → click <index> → wait --selector "#rufus-text-area" --state visible --timeout 15000eval "$(python scripts/inject-question.py '{question}')" → confirm success: truewait stable --timeout 60000 → waits for SSE streaming to complete (network idle signals stream end); then add a 3-second sleep: sleep 3eval "$(python scripts/extract-response.py)" → collect {question, response, timestamp}Error handling:
inject-question.py returns error: true with "panel may be closed" → re-run step 1 to open panel, then retryextract-response.py returns error: true with "not yet complete" → wait stable --timeout 15000 + sleep 3, then retry up to 3 times total; the status SR element may update slightly after network idleextract-response.py returns error: true with "status element not found" → panel may have closed; re-run step 1Batch questions example — with keyword search context (bash loop):
# Navigate to category page once, then ask all related questions
SESSION="amazon-qa"
KEYWORD="sous+vide"
SKILL_DIR=".claude/skills/amazon-alexa-qa"
browser-act --session $SESSION navigate "https://www.amazon.com/s?k=$KEYWORD"
browser-act --session $SESSION wait stable
questions=(
"What accessories are essential for sous vide cooking?"
"Which sous vide brands are most reliable?"
"What temperature should I use for chicken breast?"
)
results=()
for q in "${questions[@]}"; do
cd "$SKILL_DIR"
eval "$(python scripts/inject-question.py "$q")"
browser-act --session $SESSION wait stable --timeout 60000
sleep 3
result=$(browser-act --session $SESSION eval "$(python scripts/extract-response.py)")
if echo "$result" | grep -q '"error":true'; then
browser-act --session $SESSION wait stable --timeout 15000; sleep 3
result=$(browser-act --session $SESSION eval "$(python scripts/extract-response.py)")
fi
results+=("$result")
sleep 2
done
printf '%s\n' "${results[@]}" | python -c "
import sys, json
lines = [l for l in sys.stdin.read().strip().split('\n') if l.strip()]
print(json.dumps([json.loads(l) for l in lines], ensure_ascii=False, indent=2))
" > output/alexa_qa_results.json
Batch questions example — without keyword (general questions from homepage):
SESSION="amazon-qa"
SKILL_DIR=".claude/skills/amazon-alexa-qa"
browser-act --session $SESSION navigate "https://www.amazon.com"
browser-act --session $SESSION wait stable
questions=("What are today's best deals?" "Top rated gifts under \$50?" "What's trending this week?")
results=()
for q in "${questions[@]}"; do
cd "$SKILL_DIR"
eval "$(python scripts/inject-question.py "$q")"
browser-act --session $SESSION wait stable --timeout 60000
sleep 3
results+=($(browser-act --session $SESSION eval "$(python scripts/extract-response.py)"))
sleep 2
done
response field is non-null non-empty string AND question field matches submitted question
$ sign and other special characters are supported via native textarea setter (bypasses browser-act input command character filtering)response content before continuingPath: {working-directory}/browser-act-skill-forge-memories/amazon-alexa-qa-amazon-alexa-qa.memory.md (working directory is determined by the Agent running the Skill, typically the project root or current working directory)
Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.
After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line:
{YYYY-MM-DD}: {what happened} → {conclusion}
Normal execution does not write to the file. Do not record what keywords were used or how many results were returned — those are task outputs, not experience.