An AI shopping assistant that helps users find products and sends them a link to complete their purchase.
- Product Search: Search for products available for sale directly through the assistant
- Email Notifications: Receive payment link to complete via email
- Payment: Purchase products using fiat or crypto via Crossmint Checkout
This demo implements two voice-based assistants: one on the browser and one on the phone.
You will have to create an account with each of these services to get the API keys needed.
Set up your environment variables by copying the .env.template
file:
cp .env.template .env
Then, install dependencies and run the development server and the Twilio server (if you want to run this via phone):
pnpm install
pnpm run dev
pnpm run twilio-server
Ensure you use ngrok to expose your localhosts remotely. To run multiple ngrok sessions from a single tunnel with multiple ports, create an ngrok.yml
in the repo's root directory with your Twilio auth token:
version: "2"
authtoken: your_twilio_authtoken
tunnels:
twilio:
addr: 8000
proto: http
nextjs:
addr: 3001
proto: http
Then, use the following command to run ngrok:
ngrok start --config=./ngrok.yml --all
Pick up the phone to call your agent's number or open http://localhost:3001 and start shopping!