TriMail
TriMail is an all-round web3 AI-based solution for newsletters and article reading. Unlike any conventional newsletter service, TriMail works with a mix of AI and blockchain to create a flawless and secure newsletter and interest environment.
Inspiration
The idea of TriMail with a combination of blockchain and AI seemed fascinating to us. Imagine being able to receive newsletters only on topics you are truly interested in, with the security and privacy of blockchain. TriMail makes this possible with the help of Particle, Polybase, TensorFlow, and a custom SMTP server using Nodemailer.
Pitch
Features
- Seamless, secure, and engaging UX.
- Interests can be picked and updated at any time, easily.
- Regular and automatic mailing system.
- Custom AI model to fetch research papers based on interests.
- Safe and secure management of data.
- User's soul-bound ledger makes the process more secure and transparent.
- Multiple sign-in options: Gmail, Phone, Mail, Web3 Wallet, etc.
- Fresh and user-friendly UI.
Particle Network
We utilized all the features of the Particle network, including wallet authentication, signing payments, managing User's Soul Bound Token, and creating an overall seamless and secure UX. The easy-to-integrate and ready-to-use built-in wallet provided by Particle greatly improved the overall user experience.
Polybase SDK
Polybase integrated well with our requirements, not only for managing users' personal information and interests, but also for utilizing the dynamic NFT service to easily create the User's Soul Bound Token. The token can be updated by simply modifying the data on its row. Polybase was the perfect choice for this project.
Problems We Faced
We encountered several challenges throughout the project, including:
- Creating the whole SMTP server from scratch.
- Integrating the SMTP server with decentralized database and AI model.
- Integrating CORE API with the SMTP server and AI model.
Integrating AI with Frontend
- We had no experience with SMTP protocols and how they worked. We had to thoroughly study the Nodemailer documentation to create a working and efficient SMTP server. We built it using Express.js and Node.js. Additionally, we implemented a cron service to send mails to each user based on their selected schedule, such as daily, weekly, monthly, weekends, or specific days like Monday, Wednesday, and Friday.
Integrating the SMTP Server with Decentralized Database and AI Model
- We needed to connect the SMTP server with Polybase (decentralized database) and the AI model for proper on-site functioning. The main reason for using the database and model directly with the SMTP server was to eliminate overhead on the frontend.
Integrating CORE API with SMTP and AI Model
- The CORE REST API itself was quite complex. We carefully studied the documentation to achieve our goals. Integrating it with the SMTP server and AI model posed another challenge. Each email required dynamic inputs, and there were multiple users with multiple interests. However, we successfully implemented the integration.
Demo
Tech Stack
- Frontend: NEXT.js, ethers, Material UI
- Backend: Polybase, Particle auth, Particle connect, Flask, Node.js, TensorFlow
Log in or sign up for Devpost to join the conversation.