Amazon 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.
Input: question text → Output: Alexa/Rufus response text (JSON)
browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.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 thescripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.navigate "https://www.amazon.com/s?k={keyword}"
wait stable
{keyword}: product category or search term (e.g., sous+vide, coffee+maker, wireless+headphones); use + to join multi-word termseval "$(python scripts/check-alexa-panel.py)"{
"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}')"{question}: question text to ask Alexa; supports all characters including $, %, ?; max 500 charsHTMLTextAreaElement.prototype.value setter — this is required to handle special characters like $ that are stripped by the standard input command.{
"success": true,
"question": "What are the best deals on laptops today?"
}
eval "$(python scripts/extract-response.py)"wait stable to ensure SSE streaming has completed before reading DOM.{
"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"
}
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}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 1# 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
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 continuing{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){YYYY-MM-DD}: {what happened} → {conclusion}