This is a submission for Twilio Challenge v24.06.12
What I Built
Nomisma is a cutting-edge AI-driven application that delivers real-time market analysis and updates on currency pairs directly to your WhatsApp. This innovative tool leverages the power of Hono.js, Twilio serverless functions, WhatsApp API, and Cloudflare Workers AI to provide users with timely and insightful financial information.
Key Features:
Real-Time Market Analysis: Receive the latest updates on currency pairs, including bid, ask, and mid prices. Detailed analysis to help you make informed decisions on currency trading.
WhatsApp Integration: Get all your updates and analysis sent directly to your WhatsApp for convenient and immediate access. Ensures you are always in the loop, no matter where you are.
User-Friendly Interface: Simple and intuitive UI for setting up your preferences and managing notifications. Built using Hono.js for a smooth and responsive user experience.
Serverless and Scalable: Utilizes Twilio's serverless functions for efficient and scalable communication handling. Cloudflare Workers AI ensures robust and fast processing of market data and analysis.
Use Cases:
- Traders: Stay updated with the latest market trends and data for informed trading decisions.
- Financial Analysts: Get regular insights into currency pairs to aid in market research and analysis.
- Investors: Receive timely updates on currency pairs to monitor investments and market movements.
Demo
DesmondSanctity / tyche-nomisma
An AI tool that you can use to get currency pair update via Whatsapp. Built with Twilio and Cloudflare Workers AI.
tyche-nomisma
An AI tool that you can use to get currency pair update via Whatsapp. Built with Hono.js, Twilio(serverless functions & whatsapp) and Cloudflare Workers AI.
prerequisite to run project
- Cloudflare account(with your terminal authenticated with wrangler CLI) Read more here
- Cloudflare API KEY and ACCOUNT ID
- Twilio account(with Twilio WhatsApp sandbox and phone number)
- Tradermade API Key for live rates of currency pairs. See more here
step 1
- set up a file called
.dev.vars
where all your environment variables will be added. - it will look like this:
TRADER_MADE_API = ""
CLOUDFLARE_API_KEY = ""
CLOUDFLARE_ACCOUNT_ID = ""
TWILIO_PHONE_NUMBER = ""
step 2 (run locally)
- run the following commands to install dependencies and start the dev server respectively.
npm install
npm run dev
step 3 (deploy to prod)
- you should store your secret to cloudflare workers for production use using the command below. where key is…
You can find the live solution here - Nomisma
Twilio and AI
How It Works...
Setup:
- Users sign up and provide their WhatsApp number for receiving notifications.
- Select the currency pairs you are interested in and the intervals at which you want to receive updates.
Notification and Analysis:
- The AI processes market data and generates insightful analysis for the selected currency pairs.
- Notifications are sent to your WhatsApp, ensuring you have accurate information at your fingertips.
Technology Stack:
- Hono.js: Provides a fast, flexible, and scalable web framework for building the application.
- Twilio (Serverless Functions & WhatsApp API): Handles the communication and delivery of notifications via WhatsApp.
- Cloudflare Workers AI: Ensures efficient data processing and AI-driven market analysis. I used the @cf/meta/llama-3-8b-instruct for the analysis generation.
Additional Prize Categories
This submission qualifies for:
- Twilio Times Two: I used Twilio serverless function to host the messaging service to make it easily scalable when there are many users. I also used the WhatsApp API for the communication between the app and the users.
- Impactful Innovators: This app is very innovative for getting deep market insight and analysis using AI and APIs that offer historical data. It can be used by traders, investors, and analysts to keep up to date with fundamental, technical, and trend analysis without having to do much work.
Top comments (0)