Spaces:
Running
Running
Download app.py from Brettapps/agentkit-space: direct link, hf CLI and curl.
- Browser
- Download file 4.74 kB
-
https://huggingface.co/spaces/Brettapps/agentkit-space/resolve/main/app.py
- Command line
-
hf download hf://spaces/Brettapps/agentkit-space/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Brettapps/agentkit-space/resolve/main/app.py
4.74 kB
| import streamlit as st | |
| import json | |
| from datetime import datetime | |
| st.set_page_config( | |
| page_title="AgentKit Shop: Small Business Automation Pack", | |
| page_icon="🤖", | |
| layout="wide" | |
| ) | |
| st.title("🤖 AgentKit Shop: Small Business Automation Pack") | |
| st.markdown("### Production-Ready AI Agent Workflows Powered by Python, Composio & Stripe ($19 Full Edition)") | |
| st.sidebar.header("Navigation & Workflows") | |
| workflow = st.sidebar.selectbox( | |
| "Select Workflow Template", | |
| [ | |
| "1. Inbound Lead Triage & Gmail Reply", | |
| "2. Overdue Invoice Chaser", | |
| "3. Lead Enrichment & CRM Sync", | |
| "4. Automated Follow-up Sequencer", | |
| "5. Meeting Scheduler & Booker" | |
| ] | |
| ) | |
| st.sidebar.markdown("---") | |
| st.sidebar.markdown("### 🛒 Get the Complete Pack") | |
| st.sidebar.markdown("**Price: $19 (All 5 Workflows)**") | |
| st.sidebar.markdown("[Buy on Gumroad / Stripe](https://buy.stripe.com/8x26oJ4Z30rx0zb6rKbMQ0u)") | |
| st.sidebar.markdown("[GitHub Repository](https://github.com/brettanthonysjoberg179-lab/agentkit-lead-triage)") | |
| if "1." in workflow: | |
| st.header("1. Inbound Lead Triage & Gmail Reply Draft Agent") | |
| st.markdown("Automatically polls unread emails, classifies lead intent (Pricing, Support, Partnership), and drafts tailored responses.") | |
| sender = st.text_input("Lead Email", "buyer@sydneyrealestate.example.com") | |
| subject = st.text_input("Email Subject", "Enterprise pricing & real estate agent packs") | |
| snippet = st.text_area("Email Body / Snippet", "Hi, I'm interested in enterprise pricing and custom packs for my real estate agency.") | |
| if st.button("Run Triage Agent"): | |
| text = f"{subject} {snippet}".lower() | |
| if "pricing" in text or "cost" in text or "buy" in text or "enterprise" in text: | |
| category = "Hot Sales / Pricing" | |
| reply = "Hi there,\n\nThanks for reaching out! You can get started instantly here: https://buy.stripe.com/8x26oJ4Z30rx0zb6rKbMQ0u\n\nBest,\nAgentKit Team" | |
| else: | |
| category = "General Inquiry" | |
| reply = "Hi there,\n\nThanks for reaching out to AgentKit Shop! How can we help you automate today?\n\nBest,\nAgentKit Team" | |
| st.success("Triage completed successfully!") | |
| st.json({ | |
| "category": category, | |
| "reply_subject": f"Re: {subject}", | |
| "reply_body": reply, | |
| "status": "Draft Created in Gmail via Composio" | |
| }) | |
| elif "2." in workflow: | |
| st.header("2. Overdue Invoice Chaser Agent") | |
| st.markdown("Flags unpaid client invoices and sends polite automated reminder emails with instant Stripe payment links.") | |
| client = st.text_input("Client Name", "Apex Digital Agency") | |
| email = st.text_input("Client Email", "billing@apexdigital.example.com") | |
| amount = st.number_input("Amount Due (AUD)", value=1500.00) | |
| invoice_id = st.text_input("Invoice ID", "INV-2026-042") | |
| if st.button("Run Invoice Chaser"): | |
| st.success(f"Invoice reminder simulated for {client} ({email}) for ${amount:.2f} AUD.") | |
| st.info(f"Payment Link Sent: https://buy.stripe.com/test_invoice_{invoice_id}") | |
| elif "3." in workflow: | |
| st.header("3. Lead Enrichment & CRM Sync Agent") | |
| st.markdown("Enriches inbound leads with company metadata and syncs them to your CRM / Google Sheets via Composio.") | |
| lead_name = st.text_input("Lead Name", "Sarah Connor") | |
| company = st.text_input("Company Name", "Cyberdyne Systems") | |
| if st.button("Enrich & Sync Lead"): | |
| st.success(f"Enriched {lead_name} from {company}!") | |
| st.json({ | |
| "lead_name": lead_name, | |
| "company": company, | |
| "company_size": "50-200 employees", | |
| "score": "Hot Lead (Tier 1)", | |
| "crm_status": "Synced to Google Sheets via Composio" | |
| }) | |
| elif "4." in workflow: | |
| st.header("4. Automated Follow-up Sequencer Agent") | |
| st.markdown("Schedules multi-step email follow-up sequences for unresponsive prospects.") | |
| prospect = st.text_input("Prospect Name", "Marcus Vance") | |
| step = st.slider("Sequence Step", 1, 3, 2) | |
| if st.button("Dispatch Follow-up"): | |
| st.success(f"Step {step} follow-up email dispatched to {prospect} via Composio Gmail tool.") | |
| elif "5." in workflow: | |
| st.header("5. Meeting Scheduler & Calendar Booker Agent") | |
| st.markdown("Automatically parses calendar invite requests and books meetings via Composio Calendar tools.") | |
| attendee = st.text_input("Attendee Name", "Elena Rostova") | |
| slot = st.text_input("Requested Slot", "2026-10-15T10:00:00Z") | |
| if st.button("Book Meeting"): | |
| st.success(f"Meeting booked successfully for {attendee} at {slot} via Google Calendar / Composio!") | |