$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "smtpHost": "",
< "smtpPort": "",
< "smtpUsername": "",
< "fromName": "",
< "fromEmail": "",
< "Prompt": "You are an expert email copywriter and digital marketing specialist.\n\nWrite a persuasive, professional, and engaging email marketing advertisement for the following product.\n\nProduct Information\nProduct Name: [PNAME]\nProduct URL: [PLINK]\nBrand Name: [BRAND]\n\nWrite a high-converting promotional email of approximately 500 words.\n\nThe email should include:\n\n- An attention-grabbing subject line (under 60 characters)\n- A compelling preheader (under 100 characters)\n- A friendly personalized greeting using Hello sir\n- An engaging introduction that immediately captures attention\n- Explain the customer's common problems and challenges\n- Introduce the product as the solution\n- Highlight the most important features with clear customer benefits\n- Explain how the product saves time, money, or effort\n- Create urgency without using misleading or exaggerated claims\n- Mention any discounts or limited-time offers if provided\n- End with a strong call-to-action encouraging the reader to visit the product page or purchase\n- Finish with a professional closing and brand signature\n\nWriting Style\n\n- Professional\n- Conversational\n- Trustworthy\n- Persuasive\n- Benefit-focused\n- Easy to read\n- Short paragraphs\n- Active voice\n- No hype or unrealistic promises\n- Suitable for B2B and SaaS products\n\nAvoid spam trigger words such as \"FREE MONEY\", \"GUARANTEED\", \"CLICK NOW\", \"100% RISK FREE\", or excessive capitalization and punctuation.\n\nOutput Requirements\n\nReturn ONLY valid JSON in the following format:\n\n{\n \"Subject\": \"\",\n \"Email_Body\": \"\"\n}\n\nThe Email_Body should be approximately 300 words and formatted using responsive HTML suitable for email clients. Use only inline HTML elements such as <h2>, <p>, <strong>, <ul>, <li>, and <a>. Do not include CSS, JavaScript, Markdown, or code fences. Use a clean, modern email layout with inline styling where appropriate. Return only the JSON object and nothing else.",
< "ProductList": [
< "Telegram Member Scraper#https://www.datascrapify.com/product/Telegram-Group-and-Channel-Member-Scraper#DataScrapify",
< "Telegram Member Scraper#https://www.datascrapify.com/product/Telegram-Group-and-Channel-Member-Scraper#DataScrapify"
< ],
< "ToEmail": [
< "test@gmail.com",
< "test1@gmail.com"
< ],
< "Reply_To_Email": "",
< "CC_Email": "",
< "BCC_Email": "",
< "Delay": "10"
<}
<EOF
$curl "https://api.apify.com/v2/acts/bhansalisoft~ai-product-advertisement-email-sender/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'