This example shows how to use the Vercel AI SDK, Next.js, OpenAI, to create a bitcoin-enabled GPT chat bot that can send Bitcoin transactions. In this example, the GPT is creating a quiz with 10 questions, and if the player can correctly answers all of them, the GPT will send the player a prize.
To create locally you need to:
- Sign up for OpenAI's developer platform and create an API KEY.
Satoshi Quiz is built on the following stack:
- Next.js – framework
- OpenAI Functions - AI completions
- Vercel AI SDK – AI streaming library
- Vercel – deployments
- TailwindCSS – styles
- Nostr - Nostr zaps
- Alby - Lightning tools
- Nostr Blokitos Sats - Implementation of a bot for Nostr and Alby
Here's how you can contribute:
- Open an issue if you believe you've encountered a bug.
- Make a pull request to add new features/make quality-of-life improvements/fix bugs.
- EddieOz (@eddieoz) && (eddieoz@sats4.life)
- From the initial work of (@ianDAOs) and (@steven-tey)
Licensed under the MIT license.
Did you like it? Buy me a coffee
A zap through Nostr: eddieoz@sats4.life
Drop me a tip through Lightning Network: ⚡ eddieoz@sats4.life