Automated News Website Using Google News ChatGPT WordPress Make $1000 Per Day — Part 1

Pritam Banerjee
9 min readJul 28, 2023

--

How to make minimum $1000 Per Day money using ChatGPT and Google News | Millions Dollar Business Ideas

Photo by Alexander Grey on Unsplash

Introduction

Nowadays make money online is easy task if you can properly and smartly use the AI. The quality of result you will get by using AI, it is far better than human result when you know how smartly need to use AI to get desired quality result. We know the content is the king, it can be video content, text content, audio content etc, but the quality of content should be good, human friendly and SEO friendly. So In order to achieve best result we need to focus on the quality and AI produce quality result but at the same time it will produce the AI content which search engine sometime does not like. But here is the catch if you know how smartly you can use Generative AI to produce content then Search engine also failed to understand whether it is AI content or not.

So by using this mindset we need to work with AI tools and they will be our assistance to do our work smartly, from your side you need to provide smart instruction to do their job.

Automated News Website

So Automated News Website is a trending topic today and buzzword in the internet. This Automated News Website or Automated Trending Websites are a million dollar business. People do not aware of this business and they do not use this business to automate the process. So Trending Website or News Website we already know, we used to create those content from another website. But what is automated! So Automated News Website mean that everything is Automated, You just need to create the website and then everything is automated it means you do not need to manage the website to add content, update content etc, It will be done automatically.

So Earlier this feature is there but cannot make fully Automated but now ChatGPT come and it really help us 100% to create Automated News or Automated Trending website which can be million dollar business and thanks to google trends by which we can automate it and also WordPress is still great CMS to create Automated News Website.

So to create Automated News Website what are the things we required, We need Google Trends API, We need ChatGPT API and lastly we need to use WordPress Headless CMS using WPGraphQL and in the backend we will use Nest JS (Node JS Progressive Framework) to create services. So We will give step by step flow to create automated news website.

Google Trends

So Google Trends is a very powerful platform by using platform we know what are are trending topics are today. So we can easyly find those trending news based on different category and region and if we write content or may be summary of content then still we can get good traffic if we do not rank properly in search engine and yes that is true. People target for low competition keyword, do not go for trending topic but that is a mistake. Trending topics are hot based on the today date, if you can produce quality content in tending topics then you will get massive traffic but if you cannot produce not so much quality still you will get good traffic. So it is win to wind situation.

So now we need to use the Google Trends API from node js package by which we will fetch only the “Real Time Trends” on hourly basis. There is two major option in Google Trends one is Daily Trends and another one is Real Time Trends, So why we will go with Real Time Trends not with Daily Trends to get automated trending new details. It is because The Real Time Trends updates the content on Real Time and based on different hours we will get some tending news and new content or fresh content will automatically post at very beginning only. Which will really help us to get traffic from search engine and Social Media.

npm i google-trends-api

After installing the google trends package in your Nest JS project write this route code to your AppController to get Trending News based on a certain category and country.

AppController.ts

  @Post("/trends")
async getTrends(@Body() data: any) {
return await this.appService.getTrendsArticles(data.category, data.country);
}

In the AppService you need to write this below code to get Real Time Trending News.

AppService.ts

  async getTrendsArticles(category: string, country: string) {
const realTimeTrendsString = await googleTrends.realTimeTrends({category: category,geo: country});
const realTimeTrends: RealTimeTrends = JSON.parse(realTimeTrendsString);
return realTimeTrends;
}

Once you will hit the API with proper category and country then you will get a response from google trends api like this give below.

So in this response Typescript model structure given below.

RealTimeTrends.ts

export interface RealTimeTrends {
date: "string";
featuredStoryIds: any[];
hideAllImages: boolean;
storySummaries: StorySummaries;
trendingStoryIds: string[];
}

interface StorySummaries {
featuredStories: any[];
trendingStories: TrendingStories[]
}

interface TrendingStories {
articles: Articles[];
entityNames: string;
id: string;
idsForDedup: string[];
image: Image;
shareUrl: string;
title: string;
}

interface Articles {
articleTitle: string;
snippet: string;
source: string;
time: string;
url: string;
}

interface Image {
imgUrl: string;
newsUrl: string;
source: string;
}

So now under “storySummaries>trendingStories>articles” you will get array of articles where in each article you will get url of the article and articleTitle which is required to pass those information to ChatGPT API and also you will get image url in the image object which you can post in your website.

ChatGPT (Open AI API)

Now we got multiple trending stories and each stories contain minimum one article from any website or can consist multiple article in the same topic from different website. So we will use one sample article to pass the data to Open AI API to get newly generated content from ChatGPT API.

In simple term we will ask to ChatGPT smartly that here is the url of the post that you need to understand rewrite SEO friendly content which cannot catch by AI bot and human friendly rewritten content so that it can rank in search engine and also in social media.

Install the node js open AI package from npm by giving this command given below.

npm i openai

Then go to your Open AI API dashboard after login and go to the API key section and generate your API key.

Once you will generate your API Key then you need to setup the open AI configuration in your Nest JS code. In the AppService write this below code to connect to Open AI account.

import { Injectable } from '@nestjs/common';
import * as googleTrends from 'google-trends-api';
import { RealTimeTrends } from './models/RealTimeTrends';
import { Configuration, CreateChatCompletionRequest, CreateCompletionRequest, OpenAIApi } from 'openai';

const DEFAULT_MODEL_ID = 'text-davinci-003'
const DEFAULT_TEMPERATURE = 1;

@Injectable()
export class AppService {
private readonly opneApi: OpenAIApi;

constructor() {
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY
});
this.opneApi = new OpenAIApi(configuration);
}
...
}

Once you will get the openApi configure object you can pass prompts to get results. So as of now we will take the first news from the first story and from the first article by using this code.

async getTrendsArticles(category: string, country: string) {
const realTimeTrendsString = await googleTrends.realTimeTrends({category: category,geo: country});
const realTimeTrends: RealTimeTrends = JSON.parse(realTimeTrendsString);
const trendsUrl: string = realTimeTrends.storySummaries.trendingStories[0].articles[0].url;
return realTimeTrends;
}

Then create a SEO Friendly to write this website post and create a SEO friendly Human friendly post within 1000 words, which is minor AI detectable, by using this following given prompt.

async getTrendsArticles(category: string, country: string) {
const realTimeTrendsString = await googleTrends.realTimeTrends({category: category,geo: country});
const realTimeTrends: RealTimeTrends = JSON.parse(realTimeTrendsString);
const trendsUrl: string = realTimeTrends.storySummaries.trendingStories[0].articles[0].url;
const prompt: string = `${trendsUrl} Read This post and rewrite in new form as a proper SEO optimized article with heading and subheadings within 1000 words with human written content and bypass AI detector`
return realTimeTrends;
}

Once you write the prompt then you can pass this prompt to chatGPT API to get the result.

async getTrendsArticles(category: string, country: string) {
const realTimeTrendsString = await googleTrends.realTimeTrends({category: category,geo: country});
const realTimeTrends: RealTimeTrends = JSON.parse(realTimeTrendsString);
const trendsUrl: string = realTimeTrends.storySummaries.trendingStories[0].articles[0].url;
const prompt: string = `${trendsUrl} Read This post and rewrite in new form as a proper SEO optimized article with heading and subheadings within 1000 words with human written content and bypass AI detector`
try {
const response = await this.opneApi.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [{"role": "system", "content": prompt}, {role: "user", content: "Hello world"}],
});
console.log('ChatGPT Response', response.data.choices[0].message.content);
return response.data.choices[0].message.content;
} catch(err) {
console.log('err', err);
return err;
}
}

So now you get the rewritten SEO friendly Human Readable content from ChatGPT and now you can post your content to WordPress. In the same way you can also get the Title of your content and post to your WordPress and for image you can directly post the image which you have got it from the image url. There is no issue to post same image as it is a tending news website.

Automated Content To WordPress

So now we demonstrated that how we can get the content from the different websites and rewrite and then it is ready to post to your WordPress website. As of now we have done for one sample selected post but we need to do it dynamically for all of the post using for loop and that demonstration we will provide in next tutorial.

So now to post this rewritten content we can use the headless WordPress CMS and by using WPGraphQL Plugin we can post it from our Nest JS code using mutation. You can use WPLocal platform to create a WordPress instance locally and then post your content to your WordPress website using WPGraphQL Plugin. We will demonstrate the WordPress news posting code example in the next tutorial.

So once you will post your automated content to WordPress you do not need anything to do from WordPress admin in order to do with your content. You can post Title, Description and Category and also meta title and meta description Automatically. Then you will use “Social Media Auto Poster” WordPress Plugin in order to post your content automatically to your social media handle.

Then your job is done, If you have new website then submit your website to Google Webs Master tool to crawl by google using your sitemap. For theme you can use the Premium WordPress Newspaper theme which is one the best WordPress Newspaper theme which you will provide great news feature, good speed and AMP support and many more.

Conclusion

So it is just of this era, There are very less number of websites are there in the market and supply is less but the demand is less. Imagine you can create a big news website without hiring any content writes or SEO experts, it is evergreen business model and without Generative AI this would be not possible. This model certainly a million dollar business model and it has huge potential to make good money on monthly basis from Google Adsense only you can make $10000 per month if you do smart work. Remember now you do not need to do hard work, In this AI market AI will do the heavy lifting work or hard work for you but you need to smart work by using some strategy. We just some basic steps about the Automated News Website in our next tutorial we will go through with advance code example for Automated News Website. So follow and subscribe us to get the updated post.

We have successfully created a full-fledged Automated News Website using ChatGPT, Nest JS, WordPress and with Newspaper Premium Theme. The website Link is given below.

Website Link — https://trendsnewsstories.com/

We have not only made it automated but also made automated posting features for different social media by which AI is managing the website and everything is automated. So there is very little human intervention is there to manage the website. So if you want to build this same news website or any kind of automated website or portal which is scalable and can handle millions of page views using AI features. Then I have a gig in Fiver by which you can take my service and create the same kind of website in any language.

Fiver Gig Link — https://www.fiverr.com/designmart/create-professional-amp-news-website-in-wordpress

Also, the Newspaper is one of the best themes to create a News Website with AMP features. I will always recommend Newspaper theme over any other regular theme if you want to build a News Website using WordPress. This is a premium theme which will cost you some decent money but If want to buy the latest version of Newspaper 12 theme at a lower price with lifetime support then you can buy the theme by using this link at a very nominal price.

Newspaper Theme Link — https://www.etsy.com/in-en/listing/1692514600/newspaper-theme-news-woocommerce

--

--

Pritam Banerjee
Pritam Banerjee

Written by Pritam Banerjee

I am Full Stack Developer and Data Scientist, I have worked some of the biggest client’s project (eg. Walmart, Cisco, Uber, Apple, JP Morgan, Capital One etc).