DEV Community

Cover image for ChatGPT x Crypto
zachrosen
zachrosen

Posted on

ChatGPT x Crypto

ChatGPT has become our default coding + research intern at Brydge. But, it’s super limited in crypto because it was trained in 2021. Quite a bit has changed since then!

We’re constantly running into queries we need to run like:

  • Which blockchains is CRV deployed on?
  • What is SushiSwap’s router address?
  • What’s Optimism’s TVL?

ChatGPT has access to some of this data (everything pre mid 2021 aka a lifetime ago), but fails at the rest.

Good news: all of this info is publicly available (usually with ~5min of Googling).

Bad news: 5min/question adds up quickly.

So, we built a chatGPT bot that combines current web data with chatGPT to make it usable in crypto. Our primary production use is for custom token descriptions (example here) so we can give our users more insight into the tokens they’re purchasing. But, the bot is infinitely customizable to meet anyone’s needs. We’ll expand it to our inner wiki-bot soon.

How the description bot works:

  1. Takes in protocolName and tokenName -- Ex) Curve DAO and CRV
  2. Runs search query “tokenName crypto description”
  3. Scrape first 3 search results’ content
  4. Runs chatGPT query for “write an article on protocolName and the tokenName token”
  5. Returns tokenDescription

We’ve open sourced the bot here (it’s free to run—you just need an OpenAI session key). Pull requests + feedback are welcome!

PS—we’re still tuning the descriptions—they’re sometimes a little wonky with niche tokens. Let us know in our Discord if anything looks a little off!

Top comments (0)