avatarNassuf Mmadi

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3861

Abstract

recommendations on various topics. I dont want to be limited on “business, entrepreneur, tech” books.</p><p id="9272">How about getting recommendations based on hot news / trends ?</p><figure id="f3c2"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*HiomcABDI_2apsIUij9mQw.png"><figcaption>One of the things ChatGPT can’t do for now.</figcaption></figure><p id="6113">And here are our POC idea:

  • An <b>automated blog</b> that will <b>get Twitter trends</b>, <b>write articles</b> and <b>recommend 3 books</b> to read about it. With affiliate links, of course.</p><p id="3840">The OpenAI API client code could be re-used on datamz to bring intelligence to analytics and help Amazon sellers get great stuff fast (4. ✅). It seem like a lot of things to develop but I already have some code that scrape Amazon and I have a secret assistant that will help me write the Twitter / OpenAI API implementation (1.2 ✅). You guess it right, ChatGPT itself !</p><h1 id="5be7">Let’s goo !!</h1><p id="23d0">The app can be divided into 3 parts:</p><ol><li>Twitter stuff. Get the trends from the API and everything we need to build an understandable prompt for OpenAI.</li><li>OpenAI API implementation. To send the prompt and get the article content with the 3 books recommendation.</li><li>Connection to Amazon to get the books images and affiliate url.</li></ol><p id="3fe2">To have more fun and go faster I talked about this idea to my friend Yassine, a fellow guru developer who preached me Laravel until I joined the cult 😅</p><blockquote id="0988"><p>“Join-me on this Yassine ! We will make shit-ton of money !!!” I argued. “No. You should eat harissa.” he politely declined.</p></blockquote><p id="f11f">ChatGPT was more convinced.</p><h2 id="0fdd">1. Getting Twitter trends</h2><p id="65e5">It is amazing how fast you can develop basic stuff using ChatGPT. Instead of reading the TwitterAPI to understand how it works, I just asked to ChatGPT to write the code and understood way quicker.</p><figure id="c76c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ZQRB7-O7qEW6ZrUBjeGsCA.png"><figcaption>Ready to use TwitterAPI implementation that get Trends and 5 tweet from each</figcaption></figure><p id="5dad">I just had to register to TwitterAPI, apply to the right one (short form filled within a minute) edit the API credentials and it was ready !</p><h2 id="eb9d">2. Generating the article with OpenAI</h2><p id="b319">Same with OpenAI API implementation. I just asked ChatGPT to write the PHP implementation to ask OpenAI to write and article and get the closest result as ChatGPT would return. You might know that OpenAI API actually aren’t as efficient as ChatGPT. I read that ChatGPT uses a model that is not available yet on OpenAI APIs.</p><p id="e399">Yet it worked pretty well !</p><p id="f145">In less than 2 hours I had an app that gets Twitter trend, extract 5 long enough tweets, build a prompt and send it to OpenAI to write an article about it !</p><p id="7784">I even specify in the prompt that the books must be between double underscores so I can parse them to search them on Amazon later.</p><p id="42b4">Here is the <i>massive</i> prompt (in French):</p><figure id="c24f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*JzdYbOAkOxwzd3G88o2Stg.png"><figcaption>Specified to write in in Markdown so it is ready for a blog</figcaption></figure><p id="2d2b">After many tries, the recommended articles were often not relevant. So instead of asking ChatGPT to recommend books, I ask to write 3 topics about the article. We will then use those topics to search on the book section of Amazon and extract books that might be interesting.</p><h2 id="9b17">3. Getting the right books name, image and affiliate url.</h2><p id="ad3b">To get and affiliation tag you just have to register for free on <a h

Options

ref="https://affiliate-program.amazon.com/">https://affiliate-program.amazon.com/</a></p><p id="dba9">That’s what I did to got my “tag-id” that I will have to add after each book url.</p><p id="524d">Once OpenAPI returns the article content, we get each topics <i>preg_match_all(‘/(.*?)/’, content, matches);</i></p><p id="775d">For each one we just have to search on Amazon book section and get the first organic ranked book. I would ask to ChatGPT for that but I already had the base-code that scrap Amazon result page.</p><p id="756d">We then remplace the topic but the book image, title and link and voilà !</p><p id="1db5">That is how I built the “write-article-based-on-trends-that-recommend-books” code base in less 4 than hours.</p><p id="59f5"><b>And this is what happened next: </b> <a href="https://readmedium.com/chatgpt-is-a-bullshitter-shit-ton-money-journey-part-2-9562de3e5587">https://readmedium.com/chatgpt-is-a-bullshitter-shit-ton-money-journey-part-2-9562de3e5587</a></p><h1 id="ae9d">What I learned from there</h1><p id="3947">I don’t know if AI will replace developers. It might. But I know that it can be a great tool to be more efficient on value-less development. I think our value should not be into implementing APIs or scrapping data. The more we can delegate those tasks, the more we can focus on trying to be more efficient. Thinking about creative solutions. Finding the easiest ways to solve complex business problems.</p><p id="fa65">I think this is the starting of really interesting things. People who embrace those technologies and find ways to make it serve there solutions will take most advantage out of it and might make… shit-ton-of-money.</p><h1 id="b0a7">Next ?</h1><p id="a4ad">Let me know if you are interesting in the next episode. Spoiler: The blog is online since 3 days, with already 25 articles and more than 70 books recommandation 😃</p><p id="f8b0">Meanwhile, let me share to you two great videos / podcast I have listened / viewed about AI and business recently:</p><p id="4cc6"><i>Some ideas about what to build with ChatGPT:</i></p> <figure id="cdda"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWZ3A2-gU2gM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWZ3A2-gU2gM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWZ3A2-gU2gM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="d9b9"><i>And a very interesting talk with Martin Cloake, the CEO of a SaaS that uses AI to help their client make decisions:</i></p> <figure id="8547"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAwRieeZBcCk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAwRieeZBcCk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAwRieeZBcCk%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="2142">Share yours :)</p><h2 id="419b">Edit</h2><p id="fb90"><a href="https://readmedium.com/f724eca0b1e3">Here is what happened next :)</a></p><p id="5598"><a href="https://readmedium.com/f724eca0b1e3">https://readmedium.com/f724eca0b1e3</a></p></article></body>

Making a shit-ton of money with ChatGPT. Experiment 1.

As many of you I have been blown away by ChatGPT. I spent too much time playing with it. Generating articles and code. Analyzing amazon products. Using it as an assistant developer. And discussing during hours with friends trying things with it.

I got excited about trying OpenAI API, just for fun. But as I am working on an early stage SaaS that doesn’t make revenue yet, with very short deadlines, it wasn’t reasonable to “lose” time on it.

Unless… I find a way to make money while having fun. Unless doing this experiment would led me produce code that can be used in our project.

Thus I made a deal with “reasonable me” 🤝

  1. I must do it at night, he said. After 10pm, when I am done doing what needs to be done on datamz.
  2. It must be done in less than 3 evenings.
  3. It must serve a concrete immediate need on datamz.
  4. I must include things that can be re-used in short term on datamz.
  5. “Well… at least try to make money with it… and create content about it”, he conclude.

So here I am, Wednesday 4th evening, excited about trying new things 🤩 A new POC that might make shit-ton of money… or not.

The idea

A friend of mine runs a tech / running blog where he share his passions. He tried some articles written with ChatGPT that performed very well. Few months ago he tried an affiliation website but it took too many time to write articles. So he stopped. And I think he is less motivated writing about shoes than running and tech. Understandable.

💡 What if I created an automated affiliate blog ? Affiliation can be a way to make that dollars (deal point 5. ✅) and I need to build datamz’s blog next week so I could re-use the template (3. ✅).

But what about ? What a blog could personally help me on ? And what would I buy from an article recommendation ?

… Books !

I really want to read more ! Sometimes I search on Youtube for books recommendations… I always find the same. It would be great if I can get some books recommendations on various topics. I dont want to be limited on “business, entrepreneur, tech” books.

How about getting recommendations based on hot news / trends ?

One of the things ChatGPT can’t do for now.

And here are our POC idea: - An automated blog that will get Twitter trends, write articles and recommend 3 books to read about it. With affiliate links, of course.

The OpenAI API client code could be re-used on datamz to bring intelligence to analytics and help Amazon sellers get great stuff fast (4. ✅). It seem like a lot of things to develop but I already have some code that scrape Amazon and I have a secret assistant that will help me write the Twitter / OpenAI API implementation (1.2 ✅). You guess it right, ChatGPT itself !

Let’s goo !!

The app can be divided into 3 parts:

  1. Twitter stuff. Get the trends from the API and everything we need to build an understandable prompt for OpenAI.
  2. OpenAI API implementation. To send the prompt and get the article content with the 3 books recommendation.
  3. Connection to Amazon to get the books images and affiliate url.

To have more fun and go faster I talked about this idea to my friend Yassine, a fellow guru developer who preached me Laravel until I joined the cult 😅

“Join-me on this Yassine ! We will make shit-ton of money !!!” I argued. “No. You should eat harissa.” he politely declined.

ChatGPT was more convinced.

1. Getting Twitter trends

It is amazing how fast you can develop basic stuff using ChatGPT. Instead of reading the TwitterAPI to understand how it works, I just asked to ChatGPT to write the code and understood way quicker.

Ready to use TwitterAPI implementation that get Trends and 5 tweet from each

I just had to register to TwitterAPI, apply to the right one (short form filled within a minute) edit the API credentials and it was ready !

2. Generating the article with OpenAI

Same with OpenAI API implementation. I just asked ChatGPT to write the PHP implementation to ask OpenAI to write and article and get the closest result as ChatGPT would return. You might know that OpenAI API actually aren’t as efficient as ChatGPT. I read that ChatGPT uses a model that is not available yet on OpenAI APIs.

Yet it worked pretty well !

In less than 2 hours I had an app that gets Twitter trend, extract 5 long enough tweets, build a prompt and send it to OpenAI to write an article about it !

I even specify in the prompt that the books must be between double underscores so I can parse them to search them on Amazon later.

Here is the massive prompt (in French):

Specified to write in in Markdown so it is ready for a blog

After many tries, the recommended articles were often not relevant. So instead of asking ChatGPT to recommend books, I ask to write 3 topics about the article. We will then use those topics to search on the book section of Amazon and extract books that might be interesting.

3. Getting the right books name, image and affiliate url.

To get and affiliation tag you just have to register for free on https://affiliate-program.amazon.com/

That’s what I did to got my “tag-id” that I will have to add after each book url.

Once OpenAPI returns the article content, we get each topics preg_match_all(‘/__(.*?)__/’, $content, $matches);

For each one we just have to search on Amazon book section and get the first organic ranked book. I would ask to ChatGPT for that but I already had the base-code that scrap Amazon result page.

We then remplace the topic but the book image, title and link and voilà !

That is how I built the “write-article-based-on-trends-that-recommend-books” code base in less 4 than hours.

And this is what happened next: https://readmedium.com/chatgpt-is-a-bullshitter-shit-ton-money-journey-part-2-9562de3e5587

What I learned from there

I don’t know if AI will replace developers. It might. But I know that it can be a great tool to be more efficient on value-less development. I think our value should not be into implementing APIs or scrapping data. The more we can delegate those tasks, the more we can focus on trying to be more efficient. Thinking about creative solutions. Finding the easiest ways to solve complex business problems.

I think this is the starting of really interesting things. People who embrace those technologies and find ways to make it serve there solutions will take most advantage out of it and might make… shit-ton-of-money.

Next ?

Let me know if you are interesting in the next episode. Spoiler: The blog is online since 3 days, with already 25 articles and more than 70 books recommandation 😃

Meanwhile, let me share to you two great videos / podcast I have listened / viewed about AI and business recently:

Some ideas about what to build with ChatGPT:

And a very interesting talk with Martin Cloake, the CEO of a SaaS that uses AI to help their client make decisions:

Share yours :)

Edit

Here is what happened next :)

https://readmedium.com/f724eca0b1e3

ChatGPT
SaaS
Money
Developer
OpenAI
Recommended from ReadMedium