-: Hey, let's learn about how
to write an entire ebook using ai.
So this is my process.
This is what I've found useful in order
to make the content not terrible
because if you just ask it to write an ebook,
it's gonna get bad results.
The first thing I start with, this is summary.
And this is the prompt here.
The I basically ask it to please look up this specific topic
and that's going to use binging to research.
I'm just gonna paste in the topic here and hit enter.
And the reason why I do this is
because I think it's really important for it
to be grounded in the stuff that ranks on Google.
So this is a good way to make sure
that you're covering things in the ebook
that other people are writing about
and that the post is comprehensive.
'Cause if you're just writing based off your own insights,
then you might have missed something
because looking up the topic,
it's found that it was developed by Google.
It's an art package and it can help,
for example, turn the impact of an advertising campaign.
Yeah, which is what I've used it for as well.
Okay, cool.
That is really helpful.
And that's already pretty useful, right?
That's already gonna get you better results actually
than if you simply just ask it to write ebook on the topic
because you've given it some time to think essentially.
Yeah, and to do some research.
So it's got fresh information here.
Alright, the next thing though is that you need
to give it your own twist.
'Cause otherwise I don't think it's particularly moral
to make content that it doesn't have anything from you.
And it's not gonna be particularly interesting either,
to be honest.
Here we go based on the following
insights plus the summary above.
Generate an outline for ebook on topic with chapters,
sections, and subsections.
So let's copy and paste the topic across.
We're just reinforcing this
and then we need to fill this part in insights
so you can be more or less in depth
and you can put more or less insights in here.
But I'm just gonna put a handful in just to demo.
So one insight is this is a particularly
(keyboard keys clacking)
reliable method since IOS 14 happened
and you can no longer
(keyboard keys clacking)
deterministically track users based on their
(keyboard keys clacking)
IDFA, a unique identifier.
(keyboard keys clacking)
So that's one piece of important insight
that isn't in the summary that I've been talking about.
The other thing is I'll say yeah,
this method can be unreliable
when dealing with cross channel
(keyboard keys clacking)
events because it might give overlapping credit
(keyboard keys clacking)
to multiple channels.
So this is just another insight that I've had.
In the past, let's say sometimes this gives
nonsensical results.
For example, it might say your Facebook ads
drove negative revenue when that's
(keyboard keys clacking)
probably not possible unless you did a
terrible job with the creative.
Okay, so I'm just gonna keep those three insights there.
You can put more in.
One thing I also do is I'll like Google specific
things and add them in there.
So I mean we can just do that as an example,
like maybe look for a case study.
I'm going to look for this.
(keyboard keys clacking)
And marketing.
I'm just gonna find something that's interesting here.
Okay.
Just gonna copy in and put an image in here.
It should say...
(keyboard keys clacking)
Cool.
That's something that we can hopefully use
to create an image of our own
and later in the actual blog post presentation.
So I'm just gonna paste that in.
And what that's gonna do now is add these insights into
an outline for the ebook.
And the reason why we create an outline first
is that in general, I find that giving it tokens
to think like giving it some ideas in terms of planning out
what it's gonna...
Tends to improve performance.
And there's a lot of studies that show that.
The other thing is that it gives us a chance
to edit the outline if we don't like certain parts
or if we find things are missing.
The final thing it allows us
to do is just make the length a lot longer
because generally it tends to be pretty concise.
Like it won't write too much in one section
by splitting out to multiple sections here.
Then that's one trick to get it to write more
because then you can say write section 1.1,
write section 1.2,
write section 1.3, and so on.
So that's what we're gonna do next.
And once we get the outline,
we're gonna first of all,
generate some title options,
get a good sense of the title.
And then second of all we're gonna expand on the outline
with a summary of what's gonna be covered.
Because then that kind of flashes out even more
of the plan once we're happy with the actual outline.
Okay.
Alright, so let's take a look at this outline.
So introduction importance of it is talking about the IDFA,
which is something I mentioned specifically,
which is great.
You can see that coming through.
And then it made a pretty good section here.
Like it's talking about like things
like the counterfactual and intervention.
These are things that we didn't get like I didn't provide,
but the summary did or its own knowledge did,
which is really useful.
I also leave space here for including the provided image
and then adds extra things we might need.
And then I would say we probably want to add
a tutorial section
where we'll fry the code to run to a
(keyboard keys clacking)
called an impact analysis on SEO
change SEO tactic.
And then it's just gonna add that to the outline.
We could also ask it
to remove certain things if we didn't want them as well as,
so if we didn't want, you know,
this final section for example.
But you know, it's low cost to iterate on this
if we're just changing one line at a time,
it doesn't take a long time to generate.
We can get a pretty good a sense of what we need of course.
So while that's running,
I'm just gonna paste in the next thing
which is "Generate 10 very creative title options."
And I've tried lots of different ways to do this,
but I found in general,
it's good at generating lots of options
and if you put the word very creative,
it tends to give you a pretty good range of stuff.
So there we go.
So this is, you're running this stuff out,
you gonna see where we put the tutorial.
One of the benefits of doing it this way,
even if you write the book yourself,
is that you get like a really comprehensive outline.
It gives you a really good score.
Like here are the different things we need to cover.
And I think that's, yeah,
that's pretty valuable in and of itself.
So even if you stopped here
and you just started to write these sections yourself,
you've already saved a bunch of time
and I think improved your chances of this being useful.
So here we go.
We have now chapter seven,
we have this tutorial
and is put the subsections like loading,
processing data,
defining intervention period, et cetera.
Cool.
Okay, so generate 10 very creative title options,
time travelers go to SEO, causal conundrums,
decoding SEO tactics.
I quite like decoding beyond the click.
That's pretty cool.
Data alchemy.
Yeah, I would say I really like that it'd be
beyond the click and you could just combine different
parts of this if you want.
So just say, we're gonna go go with this title
and then just say acknowledge so
It wouldn't type too extra stuff like,
'cause sometimes it'll start to actually write the post
after that, which you don't want right now.
Cool.
So now say this last one here,
which is expand on the outline with the summary of
what will be covered in each chapter section in this sub.
So just gonna piece that in here
and now it's gonna go through
and you can see it's chosen
that it's selected the title that we've given it.
And that's gonna affect the summary,
which is why I think it's important
to put the title in first.
Can't come up with a good title unless it has the outline.
So that's the order of operations here.
And here we go.
So we can see now we're getting a little bit more
information for each section.
And you can see that now you have the shopping list of
what we need to cover in each,
which is really helpful.
And I'm just gonna regenerate there
'cause it's network error.
This is part of the fund of working with ChatGPT.
But while that is running,
we're gonna set up something else,
which is the actual writing.
There's a few different options here
because we need pretty long context window to do this.
And so I'm just gonna open up,
this is the open AI platform,
this is the developer platform.
If you create an account,
and one of the benefits of doing this
is that you can go to the turbo model,
which is the this the preview.
So got this one here, a GPT four preview.
And what that allows you to do is that you can fit,
I think it's 120,000 tokens in the context window.
Whereas with you normal ChatGPT,
I think it's 8,000 or something like that.
This will give you plenty of space to write a whole book.
The other option, if you don't want to set up sign up
for a developer account, if you go to Claude
and Claude has a hundred thousand token limit,
it's a competitor to it's ChatGPT.
So it's going to create a new chat
And just gonna copy and paste this in here.
So I'm gonna try this one.
So what we're doing is we're starting fresh
with a new context window.
Now that we have all of this, so lemme see,
we're gonna put in, let's go back
and get the topic.
Okay.
And then we need to paste in the outline and the insights.
So just let's grab the insights.
Okay, paste 'em in there
and then we're gonna paste in the outline as well.
And we're gonna run it in Claude and in GTP four.
So just need to click continue generating
because it's still going.
Okay, put the title
(keyboard keys clacking)
and then
copy this.
Okay, so this is finished generating
so we can grab everything.
Okay.
Now we have outline
and we have all the summaries within these outlines,
which is really helpful.
And then we have all the insights at the bottom.
So I'm gonna copy and paste this
and put this into Claude as well.
Now, oh yeah, let's turn this into a file.
And now, I wonder if we can,
we don't really want this as a file,
but I said it anyway.
Yeah, here we go.
Okay, so it is actually, you know,
using it, which is nice.
Okay, so you can see one thing straight away
that Claude doesn't really follow instructions as well
because what we wanted was we need
to write the sections one at a time.
You might need to work a little bit on this,
but it is doing a pretty decent job so far
of writing out the preface
and the other thing you wanna do,
okay, so yeah, it's got the preface first here,
but then we could just say continue
and then it should generate the next section.
Yeah, here we go.
So it's gonna keep continuing.
And so this is really the process
and you could obviously automate this at some point,
but if you're writing a whole ebook,
like it doesn't take,
you're saving like a couple of weeks worth of work here,
but you can see it's doing a pretty good job
of generating the text.
It's got a good length.
If it doesn't have a very good length,
depending on the topic, you could just ask it.
You can say, the reason I like to do this in line
is like say, okay, you didn't cover this
or can you expand, can you make this longer?
As you can say, make this longer and then I'll rewrite it
and make it longer, which is really helpful.
Now while that's running,
why don't we try this?
So I'm just gonna hit submit and there we go.
And you can compare the difference.
So it is saying in an age
where the digital landscape is rapidly evolving,
the role of effective measurement cannot be overstated.
Whereas the professor in a world
where data privacy is becoming increasingly bought,
markets face new challenges when it comes
to understanding campaign effectiveness.
So you can decide, yeah,
which one you like,
but yeah, here we go.
So now it's got an expanded section here
and if you're happy with that,
you can make changes or whatever.
So that is how it works.
You just keep going, continue.
And then as you get the text
and as you finish each section,
then you get to the point where you can copy
and paste all this across to a Google doc.
One of the things you might wanna do here
is just edit the maximum length and the tokens.
So this is like how much of a response you can get back.
You can say next section
and hopefully it will write the whole section now
And it'll just keep going with that.
You can also experiment with messing around
with the system message
and this is where I'd put like your tone of voice.
So style guide if you want it written in a specific way.
And then you can also go back
and add additional case studies
or things like that to the outline if needed.
That's probably the point where you wanna get the outline
approved with your client or you approve it
and add in additional things like you can put in
specific statistics or whatever you wanted to quote.
So that is the process you keep going with this.
And you can see here if I just copy and paste,
let's use a word counter.
So here we've got like 288 words for this first section,
you know, section 1.1
and we have, I guess it's what
it looks like about like 20, 30 sec sections here.
So we're gonna have, let's say, you know,
25 times 288.
So it's a 7,000 word essay we're gonna get.
And it's gonna take us probably another like
15 minutes to get this.
So, you know, within an hour you could have 10,000 word
ebook, which is pretty powerful
and I found that the results are
pretty good when you do it this way.
It sounds a bit more human
'cause it's using your own insights
and it's using the summary as well,
so it's more fresh and up to date
and it gives you the most flexibility
because you can add stuff in,
you can take stuff away,
and you have a chance to talk back and forth
and correct it if it does something wrong.
So make sure that you check it for hallucinations.
It's one of the main things,
you definitely need to pay an editor to look over this.
But other than that,
you should be in a pretty good position.