• AI Fire
  • Posts
  • ⚡Write Custom eBooks in Minutes with AI Automation

⚡Write Custom eBooks in Minutes with AI Automation

Discover how AI automation can make book writing easier, saving you time and helping your business with personalized eBooks for your audience.

Have you used AI to create an eBook? 😯

Login or Subscribe to participate in polls.

Introduction to E-Book Automation

Writing a book can be a long and challenging process. But what if you could automate it and create a book with just a click? This guide will show you how to do just that, making the whole process quick and easy.

Books can really help your business by boosting your reputation on platforms like Amazon or Kindle and acting as powerful lead magnets.

With Make, I'll walk you through setting up an automation that writes and customizes e-books based on user input. It will save your time and make sure each book goes perfect for your audience. If you want to streamline your content creation or grow your business, this guide is for you. So, grab a coffee, and let's get started!

Step-by-step guide

I. Collect Input for Your E-Book

1: Getting started with Google Forms

2. Creating an E-book Automation Form

  1. Create a form to collect information about the book users want to create.

  2. Include fields for:

    • Email

    • Book title

    • Description

    • Number of chapters (from 1 to any numbers you choose)

    • Reading level (from 1st to 12th grade, or undergraduate, etc.)

    You can take a look at my sample.

  3. Submit responses.

    summit-responses

II. Automate E-Book Creation with Make

1. Sign up to Make and Create a Scenario

Log into Make and create a new scenario.

creating a new scenario
  • After logging in, go to the Make dashboard.

  • Navigate to the Scenarios section, where you will see a purple button labeled “Create a new scenario” at the top right of the page. Click on it.

2. Add Modules to Automate E-Book Creation

Module 1: Google Forms

  1. Select "Watch responses" to trigger the automation when a new form submission is received.

    select-watch-responses
  2. Setup: Add a connection to your Google Forms.

    • Form ID: Your Google form ID will be between “d/” and “/edit” then fill these characters into the “Form ID” box.

    google-form-id
  3. Set the limit to 1, meaning that only one result is returned after running.

set-up-google-forms-module

Module 2: Open AI

  1. Create/Log in your account on OpenAI and generate an API key.

    create-and-log-in-your-account
  2. Back to your scenario in Make, select “Create a Completion” to generate a detailed outline of the book based on the user's input.

    select-create-a-completion-1
  3. Role: Choose “User”.

  4. Message Content: Fill in as below:

    create-a-prompt-to-generate-a-detailed-outline

    With Book Title, means that you will click in the following order based on the result of the Google Forms module:

    1. Answer

    2. Book Title

    3. textAnswers

    4. Answer [ ]

    5. Value.

    Do the same with Book Description, Number of Chapters and Reading Level.

  5. Max Tokens: 4000 (increase if more are needed but keep it below approximately 5000).

Please write an outline for an ebook on the following:

Book Title: {{5.answers.`787a2b6a`.textAnswers.answers[].value}}
Book Description: {{5.answers.`05df0160`.textAnswers.answers[].value}}
Number of Chapters: {{5.answers.`0b94d020`.textAnswers.answers[].value}}
Reading level: {{5.answers.`60948fa1`.textAnswers.answers[].value}}

Learn How to Make AI Work For You!

Transform your AI skills with the AI Fire Academy Premium PlanFREE for 14 days! Gain instant access to 100+ AI workflows, advanced tutorials, exclusive case studies, and unbeatable discounts. No risks, cancel anytime.

Start Your Free Trial Today >>

Module 3: Tools

This module helps prepare a storage place to accumulate each chapter's content as they are created.

  1. Select “Set variable”.

  2. Setup:

    • In the “Variable name” box, fill in “cumulative chapters”.

    • The “Variable value” will be left blank.

      fill-in-the-variable-name-box

Module 4: Repeater

The repeater ensures each chapter is generated sequentially based on the user's specified number of chapters.

Setup: In “Repeats” box, based on the result of the Google Forms module, click in the following order: 

  1. Answer

  2. Number of chapters

  3. textAnswers

  4. answer [ ]

  5. value

fill-in-repeats-box

Module 5: Tools

This module is to retrieve the current value of the cumulative chapters variable.

  1. Action: Select “Get variable”.

  2. Setup: In “Variable name” box, fill in “cumulative chapters”.

    fill-in-cumulative-chapters

Module 6: OpenAI

Module 6 serves as a content generator for each chapter based on the outline and user input.

  1. Select “Create a Completion”.

  2. Role: Choose “User”.

  3. Setup: In “Message Content” box, you can do similarly to the following example:

    ( is clearly explained in Module 2 - OpenAI. If you are not sure, please revisit the module.)

Please write chapter {{8.i}} of the following book for in the tone and stule of Anthony Robbins: 

Book Title: {{5.answers.`787a2b6a`.textAnswers.answers[].value}}
Book Description: {{5.answers.`05df0160`.textAnswers.answers[].value}}
Number of Chapters: {{5.answers.`0b94d020`.textAnswers.answers[].value}}
Reading level: {{5.answers.`60948fa1`.textAnswers.answers[].value}}

Here is the outline: {{6.choices[].message.content}}{{6.object}}

Please provide only the chapter as output with no other commentary, in markdown format. The chapter title should start with the chapter title in H2. 
fill-in-the-message-content-1
  1. For the subsequent space of the phrase “Here is the outline:”, based on the result of module 2, click in the following order:

    1. Choices [ ]

    2. Message

    3. Content 

  2. Max Tokens: 4000 (increase if more are needed but keep it below approximately 5000).

fill-in-the-message-content

Module 7: Tools

Module 7 helps to store the result of each chapter generated by OpenAI, and then keep track of the content of the current chapter before appending it to the cumulative chapters.

  1. Select “Set variable”.

  2. Setup:

    • In “Variable name”, fill in “chapter”.

    • In “Variable value”, based on the result of module 6 - OpenAI, click in the following order:

      1. Choices [ ]

      2. Message

      3. Content.

      fill-the-variable-value

Module 8: Tools

Module 8 helps to update the cumulative chapters variable with the content of the new chapter by continually building the full book content chapter by chapter.

  1. Select “Set variable”.

  2. Setup:

    • Fill in “cumulative chapters” for the “Variable name”

    • In Variable value:

      • Choose “cumulative chapters”, which is the result of Module 5.

        set-up-the-tools-module-2

      • Add “newline” by searching at the bar above.

        set-up-the-tools-module-1
      • Choose “chapter”, which is the result of Module 7.

        set-up-the-tools-module

Module 9: Markdown

The Markdown Module helps convert the cumulative chapters content to HTML format.

  1. Select “Markdown to HTML”

  2. Setup: In the “Markdown” box,

    • Add “#”

    • Based on the result of the Google Forms module, click in the following order:

      1. Answer

      2. Book Title

      3. textAnswers

      4. answers [ ]

      5. value

      set-up-the-markdown-module-3
    • Add “newline” by searching the above bar.

      set-up-the-markdown-module-2
    • Choose “cumulative chapters”, which is the result of Module 8.

      set-up-the-markdown-module
  3. Add a filter to ensure the loop runs only the specified number of times to generate the desired number of chapters by comparing the current iteration to the total number of chapters.

    • Click dots between Module 8 and Module 9 to set up a filter.

      set-up-a-filter-2
    • The condition will be the output of Module 4 - Repeater. In my scenario, it is named “i”.

      set-up-a-filter-1
    • In the “Text operators: Equal to”, based on the result of the Google Forms module, you will click in the following order:

      1. Answer

      2. Number of chapters

      3. textAnswers

      4. answers [ ]

      5. value

      set-up-a-filter

Module 10: PDF.co

  1. Select “Convert HTML to PDF”.

  2. Add a connection

    • Now log in to your PDF.co, then go to the main dashboard.

    • Look for your API key on the dashboard. It’s usually displayed prominently or under a specific section like "API Keys" or "Account Settings."

      add-connection-to-your-pdf-co
    • Back to your scenario in Make, click on the “PDF.co” module, then click on “Add” and fill in your API key to set up the connection.

  3. Choose “HTML to PDF” for the “Convert Type”.

    choose-convert-type
  4. In the “Input HTML Code” box, fill in:

<!DOCTYPE html>
<html>
<head> 
</head>
<body>
{{13.data}}
</body>
</html>
  • “HTML” in purple (as shown in the image above) is the output of Module 9 - Markdown.

Module 11: Email

The Email Module helps send the final product to the recipient, completing the automation process.

  1. Select “Send an Email”.

  2. Add connection to your email.

    add-connection-to-your-email
  3. In “Email Address 1”, based on the result of the Google Forms module, you will click in the following order:

    1. Answer

    2. 706bce8d (a variable)

    3. textAnswers

    4. answers [ ]

    5. value

    fill-in-email-recipient
  4. In the “Subject” box, you can fill in: “Your e-book is ready!”

  5. Choose “Plaintext” for the “Content Type”.

  6. In “Content”, fill in:

    “Please see attached for your e-book, and I hope you liked this e-book automation!

    Enjoy!

    AI Fire”

    set-up-the-email-module

III. Review the E-Book Creation Automation Scenario

  1. Click “Run once”.

    the-entire-scenario
  2. Check the generated e-book sent via email:

    the-generated-ebook-sent-via-email

Conclusion

Automating the book writing process can save you a lot of time and effort, especially when creating personalized content.

By following this guide, you can set up an easy system using Google Forms, Make, OpenAI, and other tools to generate custom e-books based on user input. This automation not only makes content creation faster but also helps build your authority and attract more leads for your business. Give this automation a try, and start creating personalized e-books that will boost your business and better engage your audience.

If you're curious about other ways AI is changing our lives or want detailed, step-by-step guides on how to make money using AI, check out our other articles here:

How would you rate this AI Automation? 🚀

Login or Subscribe to participate in polls.

Reply

or to participate.