{"id":1057,"date":"2025-01-02T16:45:40","date_gmt":"2025-01-02T15:45:40","guid":{"rendered":"https:\/\/konamiya.com\/?p=1057"},"modified":"2025-01-08T12:22:29","modified_gmt":"2025-01-08T11:22:29","slug":"how-we-simplified-email-drafting-in-clickup-using-make-com-and-appscript","status":"publish","type":"post","link":"https:\/\/konamiya.com\/en\/how-we-simplified-email-drafting-in-clickup-using-make-com-and-appscript\/","title":{"rendered":"How We Simplified Email Drafting in ClickUp Using Make.com and AppScript"},"content":{"rendered":"\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-top\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;1057&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;How We Simplified Email Drafting in ClickUp Using Make.com and AppScript&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (2 votes)    <\/div>\n    <\/div>\n\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1057\" class=\"elementor elementor-1057\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-30af9971 e-flex e-con-boxed e-con e-parent\" data-id=\"30af9971\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4c910898 elementor-widget elementor-widget-text-editor\" data-id=\"4c910898\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><em><strong>When there&#8217;s a need, there&#8217;s a solution<\/strong><\/em>. <span style=\"text-decoration: underline;\">Preferably a simple one<\/span>. This motto guides me whenever <strong>Hubert suggests new functionalities<\/strong> for our tools. Recently, we faced a challenge in one of our <strong>sales funnels<\/strong> where the high volume of emails required a more efficient flow. Hubert proposed a solution: <strong>automatically drafting emails<\/strong> to save time and streamline the process.<\/p>\n<h2>From Problem to Vision: Designing a Scalable Workflow<\/h2>\n<p>Hearing this need, I immediately began brainstorming solutions. In moments like this, I focus on ideas that are:<\/p>\n<ol>\n<li><strong>Easy to implement and maintain<\/strong>,<\/li>\n<li><strong>Highly scalable<\/strong>,<\/li>\n<li><strong>Reliable<\/strong>.<\/li>\n<\/ol>\n<p>While <strong>cost<\/strong> and <strong>execution time<\/strong> are important, they take a backseat to these priorities.<\/p>\n<h3>System Components: The Building Blocks of Automation<\/h3>\n<p>To design the solution, I started by analyzing the components we had:<\/p>\n<ul>\n<li><strong>Landing Page<\/strong><\/li>\n<li><strong>Spreadsheet<\/strong> (serving as a database)<\/li>\n<li><strong>AppScript<\/strong><\/li>\n<li><strong>ClickUp CRM<\/strong><\/li>\n<li><strong>Google Workspace<\/strong> (Gmail\/Email)<\/li>\n<\/ul>\n<h3>Defining the Interface and Action Flow<\/h3>\n<p>The next question was: <strong>What will the interface look like, and how will this function be triggered?<\/strong><\/p>\n<p>We didn\u2019t want to automatically generate drafts for all emails\u2014this would be unnecessary and problematic. On the other hand, we needed visibility into <strong>what happens and when<\/strong>.<\/p>\n<p>With these considerations, I envisioned a system where:<\/p>\n<ul>\n<li>The <strong>action is triggered directly in ClickUp<\/strong> via predefined custom fields in the task template.<\/li>\n<li>A custom automation in ClickUp sends data to a <strong>webhook<\/strong> when the &#8220;CREATE EMAIL DRAFT&#8221; action is selected.<\/li>\n<li>The <strong>webhook triggers a Make.com scenario<\/strong> that processes the request.<\/li>\n<\/ul>\n<hr \/>\n<h2>The Workflow: Simplified and Powerful<\/h2>\n<h3>Step 1: ClickUp Triggers the Action<\/h3>\n<ul>\n<li>Using ClickUp&#8217;s <strong>custom fields<\/strong>, users can select the &#8220;CREATE EMAIL DRAFT&#8221; option in the task template.<br \/><img decoding=\"async\" class=\"aligncenter lazyload\" data-src=\"https:\/\/konamiya.com\/wp-content\/uploads\/2025\/01\/ClickUP-Actions.png\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 307px; --smush-placeholder-aspect-ratio: 307\/344;\" \/><\/li>\n<\/ul>\n<h3>Step 2: Clickup to Make.com(Webhook)<\/h3>\n<p>The Clickup automation sends data to a <strong>Make.com scenario<\/strong>. Here, the entire logic of the functionality is defined.<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/konamiya.com\/wp-content\/uploads\/2025\/01\/Make-com-Scenario.png\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1639px; --smush-placeholder-aspect-ratio: 1639\/1023;\" \/><\/p>\n<p>Assistant Generates the Draft<\/p>\n<p>From Make.com, specific data is retrieved from the <strong>database<\/strong> and sent to the <strong>OpenAI assistant<\/strong>. Using a carefully crafted <strong>prompt and configuration<\/strong>, OpenAI generates:<\/p>\n<ul>\n<li>The <strong>email subject<\/strong><\/li>\n<li>The <strong>email body<\/strong><\/li>\n<\/ul>\n<h3>Step 3: Draft Creation and Status Update<\/h3>\n<p>The generated draft is created in Gmail, and the task status is automatically updated in ClickUp to reflect the action.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter lazyload\" data-src=\"https:\/\/konamiya.com\/wp-content\/uploads\/2025\/01\/ClickUP-Statuses.png\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 304px; --smush-placeholder-aspect-ratio: 304\/454;\" \/><\/p>\n<hr \/>\n<h2>Why Make.com? Flexibility, Scalability, and Security<\/h2>\n<p>One of the reasons we relied on <strong>Make.com<\/strong> for this solution is its flexibility.<\/p>\n<ul>\n<li>Adding or modifying steps is simple.<\/li>\n<li>Integration with other components (e.g., Google Workspace) is seamless.<\/li>\n<li>Maintenance is easier compared to hosting a conventional application on a private server or cloud service.<\/li>\n<\/ul>\n<h3>Security Advantages<\/h3>\n<p>Make.com also simplifies security management:<\/p>\n<ul>\n<li><strong>Webhooks<\/strong> can be restricted to specific IP addresses.<\/li>\n<li>You can add a <strong>unique token<\/strong> to every request, which is validated at the start of the scenario.<\/li>\n<\/ul>\n<hr \/>\n<h2>Continuous Data Synchronization with AppScript<\/h2>\n<p>Another vital component of the system is <strong>AppScript<\/strong>, which monitors Gmail inboxes to ensure the database remains up-to-date. This ensures that email drafts always contain the <strong>latest information and agreements<\/strong> from all relevant sources.<\/p>\n<p>\u00a0<\/p>\n<h2>Future Enhancements<\/h2>\n<p>This solution is designed to be scalable. While this article focused on the email drafting workflow, future updates will dive deeper into how AppScript powers real-time data synchronization. Stay tuned! \ud83d\ude0a<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Learn how we simplified email drafting in ClickUp using Make.com and AppScript, creating an efficient, scalable, and secure workflow. Discover how we integrated OpenAI for automatic draft generation and leveraged custom fields, webhooks, and real-time data synchronization to streamline sales funnel operations. Perfect for teams looking to optimize their processes with minimal maintenance and maximum impact!<\/p>\n","protected":false},"author":1,"featured_media":1200,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-1057","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/posts\/1057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/comments?post=1057"}],"version-history":[{"count":20,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/posts\/1057\/revisions"}],"predecessor-version":[{"id":1298,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/posts\/1057\/revisions\/1298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/media\/1200"}],"wp:attachment":[{"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/media?parent=1057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/categories?post=1057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/konamiya.com\/en\/wp-json\/wp\/v2\/tags?post=1057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}