Create a detailed Make.com workflow that performs the following operations every 30 minutes:
Monitors a specified Gmail account for incoming emails with the subject line "Request to Post My Message" that include photo attachments. Only these emails should be processed.
Simultaneously, monitors a designated WhatsApp Business account for incoming messages containing both photo and text content. Only messages with both photo and text should be processed; text-only, video, or voice messages should be ignored and not forwarded.
For each qualifying message (from Gmail or WhatsApp), extract the body content and use ChatGPT to summarize or truncate it to exactly 180 characters.
Forward the processed message—consisting of the photo attachment and the 180-character summarized text—to a specified Telegram chatbot.
Upon receiving a qualifying WhatsApp message, automatically send a reply from the WhatsApp Business number with the text: "Follow and subscribe @ronkhabar. Your message has been received and is pending for verification. After verification your message will be posted."
Ensure error handling for any failed API calls or message processing steps, and confirm that the entire workflow runs automatically every half hour without manual intervention. Include clear specifications of all necessary connections, triggers, filters, actions, and any required authentication steps within Make.com to implement this workflow effectively.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Below is an example of a detailed Make.com (formerly Integromat) workflow (Scenario) that meets your requirements. In this example, we assume that you have already set up your Gmail, WhatsApp Business, Telegram, and ChatGPT (via HTTP or a custom app) connections on Make.com. (If you use the HTTP module to call the OpenAI API you must have your API key and endpoint details available.) Follow the steps below to build and configure your workflow:
1. Scenario Overview
The scenario will be scheduled to run every 30 minutes. It has two “entry‐paths” that run in parallel: one monitors a specific Gmail account for emails with a specific subject and photo attachment(s); the other monitors your WhatsApp Business account for messages that include both text and photo content. In both cases, the workflow:
Extracts the message body (the email body or WhatsApp text) and (if present) an image.
Calls ChatGPT (via HTTP module or native ChatGPT integration) to summarize/truncate the text to exactly 180 characters.
Forwards the resulting photo and summarized text to a specified Telegram chatbot.
For WhatsApp messages only, sends an automatic reply with a fixed “acknowledgement” text.
Provides error handling logics for any failures.
2. Step-by-Step Workflow Construction
A. Scheduling and Structure
Create a New Scenario
In your Make.com dashboard, select Create a new Scenario.
Add a Scheduler module configured to run every 30 minutes.
Module:Schedule > Every 30 minutes
This serves as the “master” trigger that launches the scenario.
Use a Router for Parallel Processing
Right after the Scheduler, add a Router module.
This router will split the processing into two branches:
Branch 1: Process incoming Gmail emails.
Branch 2: Process incoming WhatsApp messages.
B. Branch 1 – Gmail Processing
Module: Gmail > Watch Emails
Configuration:
Connection: Connect your Gmail account.
Folder/Label: Specify the mailbox or label if you need to only monitor a specific folder.
Search Query: Use query parameters to filter emails. For example:
subject:"Request to Post My Message" has:attachment
Adjust the query as needed so only emails with the desired subject and attachments appear.
Module: Filter Emails by Attachment Presence
After the Gmail module, add a Filter (or an additional “Set Variable” step) to ensure the email has at least one photo attachment.
Filter condition example:
Check if the attachment MIME type (or filename extension) is among common photo formats (e.g., .jpg, .jpeg, .png).
Note: In some instances, the Gmail module returns metadata about attachments. You might need to use a [Tools > Iterator] module if there can be multiple attachments and then filter out only the images.
Module: Text Extraction
From the filtered email data, extract:
The email body (plain text or HTML stripped of tags).
The photo attachment URL (or file content).
Use a [Tools > Text Parser] module if your email has HTML formatting that needs cleaning.
Module: ChatGPT Summarizer (HTTP Request)
Configuration:
HTTP Module: Use the HTTP module to perform a POST request to the OpenAI API (ChatGPT endpoint). Alternatively, if you have a native ChatGPT integration, use that.
Request Body:
json
{
"prompt": "Please summarize or truncate the following text to exactly 180 characters: {{EmailBody}}",
"max_tokens": 300
}
Replace {{EmailBody}} with the variable referring to the extracted email body.
Authentication:
Set the required API key (bearer token) in the header.
Output:
Capture the returned summarized text. You may need to use a [Tools > JSON] module to parse the API response, then extract the summary string.
Module: Telegram > Send Photo Message
Configuration:
Connection: Connect your Telegram Bot using your Bot token.
Chat ID: Enter the ID for the Telegram chatbot or group where the message should be forwarded.
Parameters:
Photo/Attachment: Use the photo file or URL extracted from the Gmail email.
Caption: Insert the summarized text (180 characters) that you got from ChatGPT.
Note: Validate that the Telegram API accepts your file format.
Error Handling for Gmail Branch
Setup error handling:
Click the small “error” icon on each module and add an Error Handler that logs the error (for instance, using [Tools > Notification] or [Tools > Logger]) so any failed API call or transformation is recorded.
Optionally, send an email notification if the processing fails.
C. Branch 2 – WhatsApp Business Processing
Module: WhatsApp Business > Watch Incoming Messages
Configuration:
Connection: Connect your WhatsApp Business API account.
Trigger: Configure the module to listen for new incoming messages.
Module: Filter WhatsApp Messages
Objective: Process only those WhatsApp messages that contain both text and a photo.
Filter condition examples:
Check for Photo: The incoming message payload should include an attachment with MIME type image (or have a media URL with an image extension).
Check for Text: The payload should contain a non-empty text field.
If the message does not fulfill both, it is filtered out and does not continue further.
Module: Text Extraction for WhatsApp
Extract the text from the WhatsApp message body as well as the media file (photo) attachment.
Possibly use an [Iterator] if there are multiple media items, then filter out non-photo types using a filter (similarly as with Gmail).
Module: ChatGPT Summarizer (HTTP Request)
Configuration:
Use an HTTP POST request (same as in the Gmail branch) that sends the extracted WhatsApp text to ChatGPT.
Use a prompt such as:
code
"Please summarize or truncate the following text to exactly 180 characters: {{WhatsAppText}}"
Extract the 180-character summary from the response for later use.
Module: Telegram > Send Photo Message
Configuration:
Use the Telegram Bot connection.
Chat ID: Enter the ID for the target Telegram chatbot.
Photo: Use the photo attachment received from WhatsApp.
Caption: Use the summarized 180-character text from ChatGPT.
Module: WhatsApp Business > Send Message Reply
Purpose: To automatically reply to the originating WhatsApp message.
D. Finalizing & Testing the Scenario
Connecting and Authenticating Modules:
Ensure that every module (Gmail, WhatsApp Business, Telegram, HTTP/ChatGPT) is connected with valid credentials/tokens.
Test each module independently with sample data if possible.
Running a Scenario Test:
Use the Run once feature to simulate the scenario.
Provide sample content for both Gmail and WhatsApp messages:
For Gmail: An email with the subject “Request to Post My Message,” a text body, and at least one image attachment.
For WhatsApp: A message with both text and a photo attachment.
Check that the ChatGPT summarizer returns exactly 180 characters.
Verify that the Telegram Bot receives the photo and caption appropriately.
Confirm that the WhatsApp auto-reply is sent when a WhatsApp message is processed.
Activate the Scenario:
Once fully tested and verified, activate the scenario.
It will now run automatically every 30 minutes per the defined schedule.
Monitoring and Logging:
Set up logging modules or dashboards if desired to monitor scenario execution.
Use Make.com’s built-in error capturing features to obtain notifications on any failed steps.
3. Summary of Required Connections and Authentication
Gmail Connection: OAuth connection to the target Gmail account.
WhatsApp Business Connection: API credentials from your WhatsApp Business API provider.
Telegram Bot Connection: Telegram Bot token (provided by BotFather on Telegram).
ChatGPT/ OpenAI Connection: API key and endpoint URL for OpenAI’s ChatGPT. (Use the HTTP module or a custom integration.)
Scheduler/Router & Tools Modules: No additional authentication is needed.
4. Additional Tips
Filters and Data Mapping:
Use advanced filters between modules (e.g., by clicking on the little funnel icon on the connection line) to ensure only the qualifying messages (those with images, and with the specific subject in Gmail or both image and text in WhatsApp) pass through.
Handling Multiple Attachments:
In cases where there are multiple attachments, you may need to iterate over them with the Iterator module and apply a filter for allowed file types (e.g., images only).
ChatGPT Summarizer Prompt Tuning:
Ensure your prompt consistently generates output with exactly 180 characters. You may decide to add a post-processing step (e.g., using a text function to cut off extra characters) if ChatGPT’s output sometimes does not strictly conform.
Error Notifications:
Optionally add a module (such as sending an email to an administrator) when an error occurs, so you’re promptly informed of issues.
By following these steps, you create a robust, automated Make.com workflow that monitors both Gmail and WhatsApp, processes qualifying messages, leverages ChatGPT for summarization, and forwards the content to Telegram—all with built-in error handling and automatic running every 30 minutes.
Configuration:
From: Your WhatsApp Business number.
To: The sender’s phone number (obtained from the incoming message payload).
Message Text:
code
"Follow and subscribe @ronkhabar. Your message has been received and is pending for verification. After verification your message will be posted."
Add this module immediately after the Telegram module so that it only executes upon a successful WhatsApp message process.
Error Handling for WhatsApp Branch
Similar to the Gmail branch, attach error handling to each module.
Use the built-in error handling (or add a dedicated error branch) to log errors or notify you if one of the API calls (e.g., WhatsApp reply or Telegram post) fails.