Text Parser Error when trying to transform HTML from Outlook to text

I’ve tried to look for conversations with the same error but couldn’t find one exactly like this.

I’m trying to extract the body of an email on outlook, to then send it to OpenAI to define if it’s an email to reply, to create a new email based on the information inside, or forward it to another department.

So far, I’m testing how to create a new email, but I get stuck on transforming the HTML of the body into text and there’s no way to read it.

The Outlook module is good and it’s reading all the new emails.
But I can’t transform the text. I’ve tried with Text parser (Match pattern and HTML to text) or set variables and it always gives me an error of “Collection can’t be converted to text”

Can you please help me to understand what I am doing wrong? Thanks so much!


Welcome to the Make community!

I think you are mapping 1.body instead of 1.body.content

Can you check if you are mapping 1.body.content in your Text Parser?

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your module configuration fields. We need to see what you’re working with to give you the best advice.

Sharing these details will make it easier for others to assist you.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

3 Likes

Hello @Marcela combine markdown and text parser, you will get what you want

1 Like

Thanks so much! Yes this has worked! Now I have another error on the OpenAI section but will try to figure it out. Thanks again!

1 Like

No problem, really glad I could help! Thank you for providing all the necessary information — that allowed me to come to a solution quickly.

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Connecting to body.content has worked too! But I will note this down. Thanks so much for answering :slight_smile:

3 Likes

@Marcela You are welcome

1 Like