project screenshot 1
project screenshot 2
project screenshot 3

Postman

Where AI meets physical mail! Craft professional letters with ChatGPT, pay with crypto, and send via PostGrid. The charm of traditional mail, powered by blockchain.

Postman

Created At

Superhack

Winner of

🏊 Mode — Prize Pool

Project Description

Postman : AI-Enhanced Blockchain-Powered Letter Sending dApp

Introduction: In the convergence of the traditional and modern, this dApp emerges as a pioneering solution, synthesizing the nostalgia of physical letters with the efficiency of artificial intelligence and the groundbreaking potential of blockchain technology.

The Process:

User Interface & Data Input:

On the frontend, designed with the robust and dynamic Next.Js, users are greeted with an intuitive interface. Users can conveniently input the sender and receiver details along with the desired subject of the letter. AI-Powered Letter Crafting:

Once the data is submitted, the power of ChatGPT comes into play. This advanced AI model, trained on vast datasets, crafts a letter that's not only grammatically impeccable but is also contextually relevant to the subject provided. The AI-generated content ensures that the user doesn't grapple with the age-old writer's block or spend hours contemplating the perfect phrasing. Blockchain-Enabled Payment:

Upon finalizing the letter, users can proceed to send it. This step introduces them to the decentralized world of crypto payments. Through MetaMask, a secure and widely recognized wallet, users authorize a payment transaction. Leveraging the Mode chain, an Ethereum layer-2 solution, ensures that these transactions are not only swift but also incur a fraction of the usual Ethereum network fees. Physical Dispatch through PostGrid:

With the payment authorized, the dApp's integration with PostGrid takes center stage. This reliable service ensures that the digitally crafted letter is transformed into a tangible piece of mail and dispatched to the recipient's address. The blend of traditional physical letters dispatched through modern technological means adds a unique charm to the entire process. Key Advantages:

Efficiency & Ease: The dApp eliminates the manual process of writing, enveloping, stamping, and mailing. It's a one-stop solution for creating and dispatching letters.

Cost-Effective: With Mode chain's reduced transaction fees, users experience the advantages of crypto transactions without the traditionally high costs associated with Ethereum mainnet.

Modern & Accessible: The fusion of AI-driven content generation and crypto payments redefines letter sending for the modern age, making it accessible and appealing to a tech-savvy audience while retaining the personal touch of a physical letter

How it's Made

  1. The Frontend - Next.Js:

Why Next.Js? - Next.Js offers both server-side rendering and static site generation, ensuring quick load times and an enhanced user experience. Integration Points: The frontend communicates with the ChatGPT API to generate letters and with a smart contract on the Mode chain for transaction processing. It also interfaces with the PostGrid API for the final dispatch. 2. Letter Composition - ChatGPT API:

Why ChatGPT? - ChatGPT, an advanced language model, was the natural choice due to its ability to produce coherent, context-aware content based on user input. How it Works: Upon form submission, the sender details, receiver details, and subject are sent to the ChatGPT API. The API returns a professionally crafted letter, which is displayed to the user for review and confirmation. 3. Payment Integration - MetaMask & Mode Chain:

Why Mode Chain? - Mode, an Ethereum layer-2 solution, was chosen for its reduced network fees and EVM compatibility. This ensures that users get the advantages of Ethereum without the high gas costs. Transaction Flow: Once the letter is reviewed, the user triggers the 'Send' operation. The dApp connects to the user's MetaMask wallet and initiates a payment transaction on the Mode chain. The smart contract handles the transaction logic, ensuring that payments are secure and transparent. 4. Physical Dispatch - PostGrid API:

Why PostGrid? - PostGrid offers a reliable way to dispatch physical letters programmatically. Flow: After successful payment confirmation, the dApp sends the AI-crafted letter content, along with the sender and receiver details, to the PostGrid API. PostGrid takes care of printing and dispatching the letter to the provided address. Sponsor Technologies & Benefits:

Mode Chain: The integration of Mode Chain, a sponsor technology, was pivotal. It provided a seamless blockchain experience with reduced fees. It also ensured compatibility with the Ethereum ecosystem, which was vital for our MetaMask integration. Hacky & Notable:

Dynamic Gas Adjustments: To ensure that users always get the best transaction fees, we implemented a dynamic gas adjustment system. This system keeps track of current network congestion and adjusts gas fees accordingly, ensuring speedy transactions without overpaying. Custom Templates in ChatGPT: While ChatGPT is impressive, we wanted to ensure a certain level of consistency across letters. We implemented a system where predefined templates are mixed with AI-generated content to produce a balanced, professional result.

background image mobile

Join the mailing list

Get the latest news and updates