# Create a gmail draft email with email content produced from gemini module

**URL:** <https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817>\
**Category:** Questions\
**Tags:** gmail, gemini, ai\
**Created:** [February 5, 2026, 5:38am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817 "2026-02-05T05:38:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kinjal](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Kinjal](https://community.make.com/u/Kinjal)\
**Post date:** [February 5, 2026, 5:38am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817/1 "2026-02-05T05:38:09Z")

</div>

### 🎯 What is your goal?

Create a gmail draft email with email content produced from gemini module as an answer to a received email

### 🤔 What is the problem & what have you tried?

I am mapping Gmail draft email module’s body content field to the Google Gemini AI module’s result output field. This field gives correct email body content.  
I am mapping the body content field to {{8.candidates.content.parts.text}} but it gives me an error that says “Invalid collection in parameter ‘contents’.”  
I also tried mapping the body content field to {{8.result}} but it gives me the same error.

### 📋 Error messages or input/output bundles

BundleValidationError  
Validation failed for 1 parameter(s).  
Invalid collection in parameter ‘contents’.

### 🔗 Create public scenario page

> **[Tom's Kitchen - Automate Email Response - Make.com Automation Scenario](https://eu1.make.com/public/shared-scenario/zvrGzt6ALf1/tom-s-kitchen-automate-email-response)**
>
> Preview Tom's Kitchen - Automate Email Response created with Make.com. Connect your favorite apps and automate repetitive tasks.

### 📸 Screenshots (scenario flow, module settings, errors)

 ![Gmail module - Mapping 1.jpg](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/3/6382980b6c74591c045d8ca2affcdf2fe4473b0e.jpeg)

 ![Gmail module error](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/0/d09b18c6a97dbcaacdded31e858cee9d21b1a85e.jpeg)

 ![Gmail module - Mapping 2](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/9/f91f4d2e013ff4927fcff4e651c2242bb854e6dd.jpeg)

 ![Google Gemini AI module output result](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/7/c75763c0a03d3ab608054e844179b4104721b372.jpeg)

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [February 5, 2026, 8:28am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817/3 "2026-02-05T08:28:24Z")

</div>

Hey there,

You’ve specified the biddy to be a collection of contents but are passing a text string. It’s the box above, change it so it expects a text string instead of the collection.

---

<div class="post-metadata">

**Author:** ![Kinjal](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Kinjal](https://community.make.com/u/Kinjal)\
**Post date:** [February 5, 2026, 8:50am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817/4 "2026-02-05T08:50:53Z")

</div>

Hi Stoyan,

Thank you for your help. I changed the body field to ‘Raw HTML’ (it is the only other option). See below screenshot. The error has gone now and the draft email is filled with gemini AI content but the email is not formatted. Everything is in one continuous paragraph. How can I format the email content into separate sentences and paragraphs?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/0/f0466cbf3e1d6330ddbb5f37c2faa0364b25617c.png)

Thanks

Kinjal

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [February 5, 2026, 9:58am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817/5 "2026-02-05T09:58:35Z")

</div>

Change the Gemini prompt to give you the text preformatted.

---

<div class="post-metadata">

**Author:** ![Kinjal](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Kinjal](https://community.make.com/u/Kinjal)\
**Post date:** [February 5, 2026, 11:33am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817/6 "2026-02-05T11:33:07Z")

</div>

> [@Kinjal](#):
>
> Everything is in one continuous paragraph

Thanks a lot. That worked fine.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [February 19, 2026, 11:57am UTC](https://community.make.com/t/create-a-gmail-draft-email-with-email-content-produced-from-gemini-module/102817/7 "2026-02-19T11:57:05Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


