5 min read

I wrote a book on Blockchains and NFTs in a day with the help of ChatGPT

I welcome our new found bot super powers
I wrote a book on Blockchains and NFTs in a day with the help of ChatGPT

I had a thought while laying in bed unable to sleep one morning.

Can I write a ebook with the help of ChatGPT?

In this post I will go over my process on how I made the book. Here is a link to the Gumroad store if you just want to grab the free download:

Blockchains and NFTs: A Beginner’s Guide
Are you ready to join the digital revolution and understand the power of blockchains and non-fungible tokens (NFTs)? Look no further than “Blockchains and NFTs: A Beginner’s Guide” by Jeremy Schroeder.In this comprehensive and easy-to-understand guide, Jeremy explains the basics of blockchains and N…

All good books need a topic and an outline. I've been wanting to write beginner books for some of my favorite things in tech for a while [Blockchains, Linux, Godot Engine, 3D printing, etc.].

So, since I am a "domain expert" in many things, I narrowed it down to Blockchains and NFTs as they seem to be having a hard time right now.

I also wanted to have the info generated for an 11 year old to understand.

I asked the bot:

can you write an outline for a book about Blockchains and NFTs

I was not expecting much, but wow it actually came back with a great outline:

In a surprised state, I figured, what the heck, I may as well take this as far as I can to see if it works.

Next, I asked it to write one of the chapters

write the chapter "What is a blockchain?", but explain it to a 11 year old

At that moment I knew there was no turning back, I had to go for the full monty.

I then went on to generate all the chapters in the outline.

After all the chapters were done, I asked it for a Table of Contents, and by golly it responded quickly. At this point, I was giddy and laughing maniacally to myself

MUHAHAhahahahaha

I started asking odd questions: "Hey there Mr. Robot, how about some fun reviews of my new book?"

Sure! Here are three potential funny reviews for the book:

"I never knew I needed to know about blockchains and NFTs until I read this book! Now I can't stop talking about them at parties and my friends are starting to avoid me. But hey, at least I'm the most informed person in the room! Thanks for ruining my social life, book."
"I thought this book was going to be boring, but it ended up being the most exciting thing to happen to me since I found out I could order pizza online. Who knew blockchains and NFTs could be so thrilling? I can't wait to use my newfound knowledge to bore my coworkers with endless explanations of how blockchains work."
"I picked up this book thinking it would be a good way to fall asleep, but little did I know it would be the most mind-blowing experience of my life. I'm pretty sure I've been staring at the same page for the past hour because I can't stop thinking about the potential of blockchains and NFTs. I think I might have to reread the whole thing just to fully grasp the concept. Or maybe I'll just go take a nap."

via GIPHY


From here out, I was just trying to throw the chat bot something that would make it stumble.

A glossary?

"No problem." -- ChatGPT

An epigraph?

"Sure, whatever that is." -- ChatGPT

A haiku?

"Are you even trying to stump me?" -- ChatGPT

A poem?

"I eat a poem daily for breakfast" -- ChatGPT

Quotes related to the content in the book?

"I grow weary of your banter" -- ChatGPT


I then went through and tried to generate all the parts of a book from this site:

https://authority.pub/parts-of-a-book/

Without missing too much of a beat, the bot did it. Sometimes I would have to refresh the page after taking a break, but it picked right up and kept answering all my requests.


I had all the text needed and then some for a nice little ebook. So, I'd beeter do my part and actually make the ebook.

Last year around this time I was messing around with Pandoc to create my own ebooks. I pulled up my old project files and then quickly got to work formatting the new text into something readable on an e-reader.

Pandoc is awesome in that everything can be done in Markdown formatted text.

I went and uploaded the files to my Gitlab:

The Above Average Jeremy / Blockchains_and_NFTs_A_Beginners_Guide · GitLab
GitLab.com

Cover image information


Finally, I needed a great cover image, so I naturally turned to Stable Diffusion to imagine it.

The image was generated with InvokeAI [Stable Diffusion], and the Analog Diffusion model.

InvokeAI: https://github.com/invoke-ai/InvokeAI

Analog Diffusion: https://huggingface.co/wavymulder/Analog-Diffusion

Upscaled 4x with Chainner: https://github.com/chaiNNer-org/chaiNNer

Edited with Gimp for the cover and Gumroad files: https://www.gimp.org/

Art Prompt Info:

{"model": "stable diffusion","model_weights": "analog","model_hash": "a9a1c90893cc7892dfd7438004fa954696f94208c84773b1cabb434e5a856a0c","app_id": "invoke-ai/InvokeAI","app_version": "v2.2.4","image": {"prompt": [{"prompt": "amazing landscape photo of mountains with lake in sunset by marc adamus, beautiful dramatic lighting ","weight": 1}],"steps": 50,"cfg_scale": 12,"threshold": 0,"perlin": 0,"height": 768,"width": 512,"seed": 2502935700,"seamless": false,"hires_fix": false,"type": "txt2img","postprocessing": null,"sampler": "k_euler_a","variations": []}}

The last thing needed was a storefront to "Sell" the ebook for free.

I had a Gumroad account created a bit ago that I am still working on filling out with products. So, I just setup an ebook product and launched it.

My Gumroad Store Link:

Blockchains and NFTs: A Beginner’s Guide
Are you ready to join the digital revolution and understand the power of blockchains and non-fungible tokens (NFTs)? Look no further than “Blockchains and NFTs: A Beginner’s Guide” by Jeremy Schroeder.In this comprehensive and easy-to-understand guide, Jeremy explains the basics of blockchains and N…

Final Thoughts

We are in a weird space in time.

We are between the old ways of manual content generation and completely automated lives. It sort of is like life before the iPhone 3G, in that AI and ML are making splashes, but the REALLY cool stuff will be coming out next year.

I cannot wait!


If you have any questions or comments, please feel free to reach out to me on Mastodon.

Jeremy


Mastodon 109559268539622127