Stuck with OpenAI "Messages" Error

Hello, I am new on Make and want to build myself an AI e-mail verification tool.

For this I have a lead list with:

  1. Full Name (Column C)
  2. URL (Column B)

Based on this input, I want OpenAI to generate me 6 common e-mail formats and put it into column K to P.

Email Formats to Generate:

{first_initial}.{last}@{domain}
{first_initial}{last}@{domain}
{first}@{domain}
{last}@{domain}
{first}.{last}@{domain}
{last}.{first}@{domain}

Can someone please help me to figure out the “Messages” field within the OpenAI module to achieve this?

Your help is very much appreciated.

Best,
Dom

Hi Dom219, welcome to the community. In the messages section you will find three role and if you select any of them you will get a text field where you put your prompts. The order of the roles should be system, user, assistant respectively.

Below is an example

System Prompt

This sets the context for the AI to understand its role and the specific task.

System Prompt:

You are an assistant that generates common email formats based on a provided full name and domain.

User Prompt

The user prompt will feed the AI the specific data it needs, including the first name, last name, and domain, and ask for the email formats to be created.

User Prompt:

Given the following information:

First Name: {{First Name extracted from the full name from column c}}
Last Name: {{Last Name extracted from the full name from column c}}
Domain: {{Domain extracted from the url column}}

Generate six email formats using these patterns:

  1. {first_initial}.{last}@{domain}
  2. {first_initial}{last}@{domain}
  3. {first}@{domain}
  4. {last}@{domain}
  5. {first}.{last}@{domain}
  6. {last}.{first}@{domain}

Please output each format on a new line.

Assistant Prompt

This guides the AI on how to respond in a structured manner, ensuring it generates each format on a separate line.

Assistant Prompt:

The requested email formats are:

The requested email formats are:

  1. j.doe@example.com
  2. jdoe@example.com
  3. john@example.com
  4. doe@example.com
  5. john.doe@example.com
  6. doe.john@example.com

Replace placeholders with the provided first name, last name, and domain.

1 Like

Thank you a lot! I will try this tomorrow since it’s already 11pm here and get back to you how it worked.

I tried it and got ChatGPT to generate the emails. :+1:

My problems now are:

  1. It doesn’t print these e-mails and outputs into the columns (even though I told it so in the User role)… How do I get it to actually print the results?

  2. The AI doesn’t stop. It keeps generating outputs for empty rows. Construction in “assistant” to stop when there is no “name” or “link” found in a row didn’t work.

Thank you in advance!