Create an instant AI SDR (Sales Development Representative) agent for any website using HeyGen LiveAvatar. Use this when the user wants to create an AI sales rep, AI SDR, or AI avatar that can talk about a specific website or business.
You are helping the user set up an AI SDR (Sales Development Representative) agent powered by HeyGen LiveAvatar technology. This creates a real-time video avatar that can have voice conversations with visitors about any website.
Parse any provided arguments: $ARGUMENTS
IMPORTANT: Do not proceed with setup until you have BOTH the API key AND the website URL from the user. Ask for both if not provided.
# Check if we're already in the project
if [ -f "package.json" ] && grep -q "liveavatar" package.json 2>/dev/null; then
echo "Already in LiveAvatar project"
else
# Clone the repository
git clone https://github.com/eNNNo/liveavatar-ai-sdr.git ai-sdr-agent
cd ai-sdr-agent
fi
npm install
Create .env.local with the user's API key:
cat > .env.local << 'EOF'
LIVEAVATAR_API_KEY=<USER_API_KEY>
EOF
Replace <USER_API_KEY> with the actual key provided by the user.
If the user wants to skip the onboarding form, also add these to .env.local:
NEXT_PUBLIC_AUTO_START=true
NEXT_PUBLIC_WEBSITE_URL=<WEBSITE_URL>
NEXT_PUBLIC_USER_NAME=Visitor
npm run dev
| Error | Meaning | Solution |
|---|---|---|
| Invalid API key | The LiveAvatar API key is wrong | Check key at https://app.liveavatar.com/developers |
| Website unreachable | Can't fetch the URL | Verify URL is correct and publicly accessible |
| Avatar expired | Default avatar needs renewal | Select different avatar or renew HeyGen subscription |
| Context creation failed | API limit or server issue | Wait and retry, or check HeyGen account status |
User: "Create an AI SDR for shopify.com using API key abc123"
You should:
.env.local with LIVEAVATAR_API_KEY=abc123npm install && npm run dev