creatawebhoodforabusiness
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v15View latest version
A comprehensive webhook system for automatically sorting and managing business orders. This system receives order data, categorizes orders by priority, type, and status, and provides automated sorting workflows.
- Intelligent Order Sorting: Automatically categorizes orders by priority, value, and type
- Priority Management: High-value orders, rush orders, and VIP customers get priority
- Automated Workflows: Routes orders to appropriate fulfillment teams
- Real-time Dashboard: View sorted orders and processing queues
- Email Notifications: Alerts for high-priority orders and processing updates
- Flexible Rules: Customizable sorting criteria and business rules
- URGENT: Rush orders, high-value customers, same-day delivery
- HIGH: Premium customers, large orders, expedited shipping
- MEDIUM: Standard orders, regular customers
- LOW: Bulk orders, non-urgent items
- Order Value: High-value orders (>$500) get priority processing
- Customer Type: VIP, Premium, Standard, New customers
- Product Type: Physical goods, digital products, services
- Shipping Method: Same-day, expedited, standard, pickup
- Geographic Region: Local, domestic, international
POST /webhook/orders- Receive and sort new ordersGET /api/orders/sorted- Get orders sorted by priorityGET /api/orders/queue/:priority- Get orders by priority queueGET /api/dashboard- Order sorting dashboard
Set these environment variables:
WEBHOOK_SECRET: Secret for webhook validationBUSINESS_EMAIL: Email for high-priority order alertsHIGH_VALUE_THRESHOLD: Minimum amount for high-value orders (default: 500)