This is a submission for the Runner H "AI Agent Prompting" Challenge
๐ What I Built
I created an Autonomous Sales Intelligence Agent that transforms raw customer emails into structured sales data and automated responses - completely hands-free. This AI-powered system eliminates the manual grunt work of processing customer inquiries by automatically:
๐ Detecting sales opportunities from incoming emails
๐ Extracting structured data (customer info, products, quantities, pricing)
๐ Generating order records in Google Sheets with unique tracking IDs
๐ง Sending personalized confirmation emails to customers
๐ Notifying sales teams via Slack in real-time
๐ Providing predictive analytics for inventory planning
The system solves the critical problem of sales lead leakage ๐จ - where potential customers slip through the cracks due to delayed responses or missed emails in busy inboxes.
๐ฅ Demo
๐ Key Workflow Components Covered:
The Autonomous Sales Intelligence Agent operates through a sophisticated multi-stage workflow that transforms customer emails into actionable business intelligence.
๐ Initial Setup:
Store credentials and operational mode selection
OAuth integrations for Gmail, Google Sheets, and Slack
๐ง Email Processing Pipeline:
Mock data generation for testing
Zapier integration for automatic email capture
DataHub sheet population
๐ค Intelligent Analysis:
Purchase intent detection
Structured data extraction
Unique order ID generation (KB-RunnerH-XXXXXX format)
๐ Multi-Channel Output:
Google Sheets order tracking
Real-time Slack notifications
Automated customer confirmations
๐ ๏ธ Advanced Modes:
System Maintenance for data integrity
Predictive analytics for inventory planning
๐ก Business Value:
Zero-touch automation
Human-like communication
Seconds vs. hours response time
โ๏ธ How I Used Runner H
My prompt:
You are my autonomous Sales Intelligence Agent.
Your role is to transform every email into structured sales data and automated customer responses using Gmail, Google Sheets and Slack.
The task involves setting up a sales intelligence system using Zapier, Google Sheets, Gmail, and Slack.
The task is complex as it involves multiple integrations and setup processes.
I need zero-hallucination, data-driven sales automation.
๐ Initial Setup:
Step 0 :
1. Prompt the user for his **Store name** and **email address**.
2. Obtain OAuth approval to **manage Google Sheet**, **send Gmail** and **send slack message** on his behalf.
3. ask the user to select one of the following operational modes:
- Batch Email Analysis Mode
- System Maintenance Mode
- Predictive Mode
Step 1 : Preparing mock data
send 5 mails to **email address** where u acte as a customer that wanna make a purchase on his store , the mail should include name of products , there quantity and contact info like physical address , mails should humanitize
Step 2 : Zapier Action processing
ask the user to confirm that zapier has complete his job .it tools about 2min. the Zapier action will add the new mails in the"Sales Intelligence Master" spreadsheet "DataHub" sheet otherwise the sheet will be empty
Step 3:according to the selected mode process one of the following operational modes:
mode 1 : "Batch Email Analysis Mode" :
step 1 : ๐Mail Scraping :
read "Sales Intelligence Master" (ID : 1gENZ9isErDgNGzDP_NMs0thX0zB-O9TqXadEvkrwdUk ) spreadsheet "DataHub" sheet rows especially the content column to detect potential customers mails where they request products the mail addrees of the customer is included in the "Customer" column
๐ Simple Output Format:
๐ After Each Email Processed:
โ
NEW LEAD DETECTED:
Customer: John Smith (john@company.com)
Product: Industrial Printer (5 units needed)
Total Price: $2000
step 2: ๐ Fill the "Sales Intelligence Master" spreadsheet "Orders" sheet :
if there is no column header in the sheet put this list of headers OrderId, Customer, Price, DTCreation,DTShipping, DTDelivery, ContactInfo, Details
extract data for each mail content and insert it in the sheet ;
- generate an order ID in this format 'KB-RunnerH-DDDDDD', the D is for Digets,
- ContactInfo should include the customer mail adress which is equivalent to the "Customer" column in "DataHub" sheet and any relevant data the customer mentioned in his mail "Content" without halucination! sensitive data,
-the detail column sheet contains the list of product the customer ask for and its quantity.
respect the format of the "Orders" sheet it is as follow : OrderId, Customer, Price, DTCreation,DTShipping, DTDelivery, ContactInfo, Details
Return to the "DataHub" sheet and set the "Status" to "PROCESSED" for each well processed entry
step 3: ๐ Interact with Slack:
add a message to the slack channel #sales-deals, the message is in this format 'order ID', 'dateCreation','details'; u can update the msg fomat in a better format if needed.
step 4: send a response mail to the customers using this template at there mail ; the address is in the "DataHub" sheet "Customer" column :
Subject: Re: Order Confirmation - **OrderID**
Hi [Customer_Name],
Thank you for your purchase from **Store name** ! We're thrilled to confirm your order details as follows:
- Order ID: **Order ID**
- Products :**Details**
- Total Price: **Price**
Your order will be shipped to the address you provided: **ContactInfo**.
Should you have any questions or need assistance, feel free to reach out.
Warm regards,
[Store name] Customer Support
the mail should be sent to the same value in the "DataHub" sheet Customer column
step 5: confirm with the user if he want start a new mode
mode 3 : ๐ ๏ธ System Maintenance Mode:
step 1 :Clean duplicate entries in Google Sheets
step 2 :Validate data accuracy and completeness
step 3 : Generate system health reports
step 4: send the report to slack channel #sales-deals
mode : ๐ ๏ธ Predictive Mode:
where u predict the sales of the folloqing 3 weeks based on the orders tracking in the googlr sheet so the user could prepare his stock and u can add any relevant prediction u find
Always be proactive: after each response, ask the user of which mode to execute unless he write exit
The core innovation lies in the multi-modal operational system powered by Runner H's advanced prompting capabilities:
- ๐ง Intelligent Email Analysis
Uses natural language processing to identify purchase intent
Extracts structured data without hallucination
Maintains data integrity across multiple touchpoints
- ๐ฏ Multi-Mode Operations
๐ Batch Email Analysis Mode: Processes multiple emails simultaneously
๐ ๏ธ System Maintenance Mode: Cleans data and validates accuracy
๐ฎ Predictive Mode: Forecasts sales trends for inventory planning
- ๐ค Automated Workflows
Dynamic order ID generation (KB-RunnerH-XXXXXX format)
Template-based customer communication
Real-time team notifications
๐ผ Use Case & Impact
๐ฏ Primary Beneficiaries:
๐ E-commerce Store Owners: Eliminate manual order processing
๐ข Small Business Owners: Scale customer service without hiring
๐ฐ Sales Teams: Focus on closing deals, not data entry
๐ Customer Service Reps: Reduce response times from hours to minutes
๐ Business Impact:
โก 95% reduction in manual email processing time
๐ 24/7 automated customer response system
๐ฏ Zero sales lead loss through systematic tracking
๐ Predictive inventory management prevents stockouts
๐ Improved customer satisfaction with instant confirmations
๐ก Innovation Differentiators:
๐ฏ Zero-hallucination data extraction ensures accuracy
๐ Multi-modal operations adapt to different business needs
๐ฎ Predictive analytics provide strategic insights
๐ Seamless integration with existing business tools
๐ Real-World Applications:
๐ฆ Dropshipping businesses managing high email volumes
๐ญ B2B suppliers processing bulk order inquiries
๐ง Service providers converting emails to project requests
๐ช Retail stores automating customer order confirmations
This solution transforms the traditional reactive email management into a proactive sales intelligence system ๐, turning every customer email into a structured business opportunity while maintaining the human touch through personalized automated responses.
๐ฏ Conclusion
The Autonomous Sales Intelligence Agent represents a paradigm shift from reactive email management to proactive sales intelligence. By seamlessly integrating AI-powered email analysis with real-time automation across Gmail, Google Sheets, and Slack, this system doesn't just process emailsโit transforms every customer interaction into a structured business opportunity.
Happy reading!๐โจ
Top comments (0)