<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[The 2Chat Blog]]></title><description><![CDATA[Learn to sell more using WhatsApp]]></description><link>https://blog.2chat.co/</link><image><url>https://blog.2chat.co/favicon.png</url><title>The 2Chat Blog</title><link>https://blog.2chat.co/</link></image><generator>Ghost 4.48</generator><lastBuildDate>Fri, 10 Apr 2026 15:00:26 GMT</lastBuildDate><atom:link href="https://blog.2chat.co/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Build Your Own WhatsApp Group  Bulk Messaging App with AI]]></title><description><![CDATA[Build a custom WhatsApp bulk messaging app in minutes without writing any code. This step-by-step vibe coding tutorial shows you how to use Google's Gemini AI and the 2Chat API to automate your marketing and connect with customers at scale. Perfect for entrepreneurs and digital marketers.]]></description><link>https://blog.2chat.co/build-your-own-whatsapp-group-bulk-messaging-app-with-ai/</link><guid isPermaLink="false">69952da02844af92b4240ee5</guid><category><![CDATA[bulk-whatsapp]]></category><category><![CDATA[api]]></category><category><![CDATA[whatsapp]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 19 Feb 2026 03:29:19 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2026/02/2Chat-AI-Group-Bulk-Messaging-Vibe-coding-2.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2026/02/2Chat-AI-Group-Bulk-Messaging-Vibe-coding-2.png" alt="Build Your Own WhatsApp Group  Bulk Messaging App with AI"><p>Are you looking for a way to connect with your customers on a massive scale, directly on the platform they use most? Imagine sending out a new product announcement, a special offer, or an important update to all your WhatsApp groups with just a few clicks. Sounds like a game-changer, right?</p><p>Reaching your audience directly is marketing gold. WhatsApp is a powerful channel for this, but managing bulk communications can be a huge time-sink. What if you could build your own custom tool to handle it, without writing a single line of code yourself?</p><p>That&#x2019;s exactly what we&#x2019;re going to do today. In this tutorial, I&apos;ll walk you through how to use the incredible power of Google&apos;s Gemini AI and the flexible <strong>2Chat API</strong> to build a functional web application that sends bulk messages to WhatsApp groups. No coding experience? No problem! You just need to know how to ask.</p><p>Let&apos;s dive in and turn a powerful idea into a real-world tool for your business.</p><h3 id="your-toolkit-what-youll-need"><strong>Your Toolkit: What You&apos;ll Need</strong></h3><p>Before we start building, let&apos;s gather our two main tools:</p><ul><li><strong>The 2Chat API:</strong> Think of an API as a bridge that lets different software programs talk to each other. The 2Chat API is our bridge to WhatsApp. It&#x2019;s incredibly well-documented and gives us all the functions we need&#x2014;like listing our phone numbers, seeing our groups, and, of course, sending messages.</li></ul><blockquote class="kg-blockquote-alt">To use the API, you need a 2Chat account. <a href="https://2chat.co/">Create your trial account now!</a></blockquote><ul><li><strong>Google AI Studio (with Gemini):</strong> This is our &quot;developer.&quot; We&apos;re going to give Google&apos;s Gemini AI a detailed set of instructions (a &quot;prompt&quot;), and it will write all the code for our application for us. It&#x2019;s like having an expert software engineer on call, ready to build whatever you can describe.</li></ul><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/hk33kwf2PzQ?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Vibe Coding Tutorial: Build a WhatsApp Automation App with Gemini and 2Chat API"></iframe></figure><h3 id="step-1-understanding-the-building-blocks-in-the-2chat-api"><strong>Step 1: Understanding the Building Blocks in the 2Chat API</strong></h3><p>First, let&apos;s get familiar with the tools 2Chat provides. If you look at the <a href="https://developers.2chat.co/">2Chat API documentation</a>, you&#x2019;ll see it&#x2019;s packed with features. For our bulk messaging app, we&apos;re interested in three key functions:</p><ul><li><strong><a href="https://developers.2chat.co/docs/API/WhatsApp/Web/list-numbers">List Numbers (/whatsapp/get-numbers)</a>:</strong> This function allows our app to find which of your WhatsApp numbers are connected and available in your 2Chat account.</li><li><strong><a href="https://developers.2chat.co/docs/API/WhatsApp/Web/groups/list-whatsapp-groups">List Groups (/whatsapp/groups)</a>:</strong> Once we select a number, this function will pull a list of all the WhatsApp groups associated with that number. This is crucial for choosing our audience.</li><li><strong><a href="https://developers.2chat.co/docs/API/WhatsApp/Web/send-message">Send Message (/whatsapp/send-message)</a>:</strong> This is the action endpoint. We&apos;ll use a specific parameter here called <em>to_group_uuid</em> to send our message directly to the groups we selected.</li></ul><p>Knowing these specific functions is key because we&apos;re going to tell Gemini exactly what to use.</p><h3 id="step-2-crafting-the-perfect-prompt-for-gemini"><strong>Step 2: Crafting the Perfect Prompt for Gemini</strong></h3><p>This is where the magic happens. We&#x2019;re not writing code, but we are writing a very specific set of instructions for our AI developer. A great prompt is the secret to getting a great result.</p><p>We&apos;ll head over to <strong>Google AI Studio</strong> and go to the <strong>Build</strong> section. Here, we&apos;ll give Gemini the following prompt. Let&apos;s break it down piece by piece.</p><ul><li><strong>Part 1: Give the AI a Role</strong><br>We start by telling Gemini who it is. This sets the context for the entire task.You are an expert developer with UX design knowledge.</li><li><strong>Part 2: Define the Goal</strong><br>Next, we tell it exactly what we want to build. You need to create a web app focused in sending bulk messages to WhatsApp groups. The app will use 2Chat API...</li><li><strong>Part 3: Detail the Step-by-Step Logic</strong><br>Now, we outline the application&apos;s flow, referencing the specific 2Chat API calls we found earlier.</li></ul><!--kg-card-begin: markdown--><pre><code>You are a expert developer with UX design knowledge. You need to create a web app focused in sending bulk email to WhatsApp groups. The app will use 2Chat API, it will ask for the API Key, next it will list the available phone nummber using a request like this:
curl -L -G &apos;https://api.p.2chat.io/open/whatsapp/get-numbers?page_number=0&apos; \
&#xA0;&#xA0;&#xA0;&#xA0;--header &apos;X-User-API-Key: your_api_key_here&apos;
This is the sample response:
{
&#xA0;&#xA0;&#xA0;&#xA0;&quot;success&quot;: true,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;count&quot;: 1,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;page&quot;: 0,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;numbers&quot;: [
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;{
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;uuid&quot;: &quot;WPN95841312-b54d-46e3-b0bc-6414f4a5296b&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;friendly_name&quot;: &quot;my testing number&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;phone_number&quot;: &quot;+595981048477&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;iso_country_code&quot;: &quot;PY&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;pushname&quot;: &quot;:v:&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;server&quot;: &quot;595981048477@c.us&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;platform&quot;: &quot;iphone&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;connection_status&quot;: &quot;C&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;enabled&quot;: true,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;is_business_profile&quot;: false,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;channel_type&quot;: &quot;WW&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;sync_contacts&quot;: true,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;created_at&quot;: &quot;2022-10-31 22:05:44&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;updated_at&quot;: &quot;2022-12-01 21:40:04&quot;
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;}
&#xA0;&#xA0;&#xA0;&#xA0;]
}
Now, using the API Key and the selected phone number it Will list available groups using this request:
curl -L -G &apos;https://api.p.2chat.io/open/whatsapp/groups/+595981048477&apos; \
&#xA0;&#xA0;&#xA0;&#xA0;--header &apos;X-User-API-Key: your_api_key_here&apos;

This is the response sample:
{
&#xA0;&#xA0;&#xA0;&#xA0;{
&#xA0;&#xA0;&#xA0;&#xA0;&quot;success&quot;: true,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;data&quot;: [
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;{
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;uuid&quot;: &quot;WAG768beeef-2b96-4bc7-9b7f-045078568723&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;channel_uuid&quot;: &quot;WPN95841312-b54d-46e3-b0bc-6414f4a5296b&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;wa_group_id&quot;: &quot;....@g.us&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;profile_pic_url&quot;: &quot;...&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;wa_owner_id&quot;: &quot;17137157533@c.us&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;wa_group_name&quot;: &quot;2chat test group :ok_hand:&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;wa_created_at&quot;: &quot;2022-10-23T17:11:41Z&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;wa_subject&quot;: &quot;daily motivational quotes :muscle:&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;size&quot;: 4,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;is_muted&quot;: false,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;is_read_only&quot;: false,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;channel_is_owner&quot;: false,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;created_at&quot;: &quot;2023-06-22T20:02:56Z&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;updated_at&quot;: &quot;2023-07-12T19:18:41Z&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;owner_contact&quot;: {
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;uuid&quot;: &quot;CON1653490d-194b-4992-8353-e4b46a64e321&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;first_name&quot;: &quot;Mikey&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;last_name&quot;: &quot;Mike&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;channel_uuid&quot;: &quot;WPNc568c832-606c-4d50-8092-fc51b5149d16&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&quot;profile_pic_url&quot;: &quot;...&quot;
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;}
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;}
&#xA0;&#xA0;&#xA0;&#xA0;]
The user can select several groups and now if Will use this API to send bulk messaging using this API request:
curl --location --request POST &apos;https://api.p.2chat.io/open/whatsapp/send-message&apos; \
--header &apos;X-User-API-Key: your_api_key_here&apos; \
--header &apos;Content-Type: application/json&apos; \
--data-raw &apos;{
&#xA0;&#xA0;&#xA0;&#xA0;&quot;to_group_uuid&quot;: &quot;WAG768beeef-2b96-4bc7-9b7f-045078568723&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;from_number&quot;: &quot;+595981048477&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;text&quot;: &quot;Test from 2Chat API&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;url&quot;: &quot;https://uploads-ssl.webflow.com/6281a9c52303343ff7c3b269/62a1648ee0273340bf38e3a9_logo-2C.svg&quot;
}&apos;
The app Will list message sending result, this is a reponse sample:
{
&#xA0;&#xA0;&#xA0;&#xA0;&quot;success&quot;: true,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;message_uuid&quot;: &quot;MSG205dec10-523d-4ab3-b739-fd56e7cdeba2&quot;,
&#xA0;&#xA0;&#xA0;&#xA0;&quot;batched&quot;: true
}
in the results step in the detailed report in the response / error column add the full json response returned from every api request and also de request sent to the 2Chat API

Conditions:
- Avoid the API CORS error
- Use this color #2243FD as accent color with a light grey background
- The user can go to the next task and return if needed
`</code></pre>
<!--kg-card-end: markdown--><p>Once your prompt is ready, you paste it into Gemini&apos;s build section and click <strong>&quot;Build&quot;</strong>.</p><h3 id="step-3-watch-your-app-come-to-life"><strong>Step 3: Watch Your App Come to Life!</strong></h3><p>This is the most exciting part. Gemini will take all your instructions and, within a minute or two, generate a complete, working web application. You&apos;ll see it create the files, write the code, and assemble everything into a functional prototype.</p><p>Once it&#x2019;s done, the preview screen will display your app! It starts, just as we asked, by requesting your 2Chat API key.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2026/02/chrome_ruzAHrnuxM.gif" class="kg-image" alt="Build Your Own WhatsApp Group  Bulk Messaging App with AI" loading="lazy" width="1378" height="794"></figure><ul><li><strong>Enter Your API Key:</strong> Grab your API key from your 2Chat dashboard (under Developers -&gt; API Access).</li><li><strong>Select Your Phone Number:</strong> The app will automatically fetch and display all the numbers connected to your 2Chat account. It even shows their &quot;Active&quot; status!</li><li><strong>Choose Your Groups:</strong> After selecting a number, it will load all your WhatsApp groups. Thanks to our prompt, it even includes a search bar to help you find specific groups quickly.</li><li><strong>Compose &amp; Send:</strong> Write your message, add an optional image URL, and hit &quot;Send.&quot; The app will send your message to all the selected groups and give you a real-time report on the status of each message.</li></ul><p>And just like that, you have a custom-built bulk WhatsApp sender!</p><h3 id="ready-to-build-your-own"><strong>Ready to Build Your Own?</strong></h3><p>This is just the beginning. Imagine the other tools you could build to streamline your marketing and sales processes. With the right tools and a clear idea, you can create powerful applications that give your business a competitive edge.</p><p>Ready to put this tutorial into action? The first step is getting your 2Chat API key.</p><blockquote class="kg-blockquote-alt"><strong><a href="https://2chat.co/">Sign up for a 2Chat account today</a></strong> and start exploring the power of WhatsApp automation for your business!</blockquote>]]></content:encoded></item><item><title><![CDATA[How to Build a WhatsApp Group Analytics Dashboard with Looker Studio and 2Chat]]></title><description><![CDATA[Learn to track your WhatsApp group growth with data. This step-by-step tutorial shows you how to build an automated analytics dashboard in Looker Studio using Google Sheets and the 2Chat API. Monitor joins, leaves, and community health effortlessly.]]></description><link>https://blog.2chat.co/how-to-build-a-whatsapp-group-analytics-dashboard-with-looker-studio-and-2chat/</link><guid isPermaLink="false">6938ebaa2844af92b4240dc1</guid><category><![CDATA[whatsapp]]></category><category><![CDATA[whatsapp group]]></category><category><![CDATA[dashboard]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 11 Dec 2025 03:33:52 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/12/WhatsApp-Group-Monitor-Dashboard.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/12/WhatsApp-Group-Monitor-Dashboard.png" alt="How to Build a WhatsApp Group Analytics Dashboard with Looker Studio and 2Chat"><p>If you&apos;re using WhatsApp groups to build a community, launch a product, or keep your clients engaged, you&apos;ve probably asked yourself: &quot;Is this thing <em>actually</em> working? Are we growing?&quot;</p><p>Guessing is not a strategy. To truly understand your community&apos;s health, you need data. You need to see who&apos;s joining, who&apos;s leaving, and when these changes happen. Imagine being able to see a spike in new members immediately after launching a marketing campaign or noticing a trend of people leaving at a specific time. That&apos;s powerful, actionable information.</p><p>But how do you get it without manually counting participants every day?</p><p>That&apos;s exactly what we&apos;re going to build today. In this tutorial, I&apos;ll guide you through creating a powerful, automated dashboard in Looker Studio. This dashboard will connect to your WhatsApp groups via the <strong>2Chat API</strong> and use a simple <strong>Google Sheet</strong> to track every join and leave event automatically.</p><p>No more guesswork. Just clear, visual data to help you make smarter decisions. Let&apos;s get started!</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/k6WEaM1QJoM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Monitor WhatsApp Group Members Easily (2Chat + Google Sheets + Looker Studio)"></iframe></figure><h3 id="what-your-finished-dashboard-will-look-like"><strong>What Your Finished Dashboard Will Look Like</strong></h3><p>Before we dive into the setup, let&apos;s take a quick tour of the dashboard you&apos;re about to create. It&apos;s designed to give you all the essential stats at a glance.</p><figure class="kg-card kg-image-card kg-card-hascaption"><a href="https://lookerstudio.google.com/reporting/5220324e-b31b-4a65-b488-0621cf534fa5"><img src="https://blog.2chat.co/content/images/2025/12/image.png" class="kg-image" alt="How to Build a WhatsApp Group Analytics Dashboard with Looker Studio and 2Chat" loading="lazy" width="810" height="867" srcset="https://blog.2chat.co/content/images/size/w600/2025/12/image.png 600w, https://blog.2chat.co/content/images/2025/12/image.png 810w" sizes="(min-width: 720px) 720px"></a><figcaption>Click to view the sample dashboard</figcaption></figure><p><strong>Key Metrics at the Top:</strong></p><ul><li><strong>Record Count:</strong> The total number of events (joins or leaves) that have been recorded.</li><li><strong>Participants:</strong> The total number of unique people who have been in your groups over time.</li><li><strong>Current Group Count:</strong> The number of groups you are currently tracking.</li><li><strong>Last Date:</strong> The last time the data was updated, so you always know you&apos;re looking at fresh information.</li></ul><p><strong>Visual Charts for Quick Insights:</strong></p><ul><li><strong>Events by Week:</strong> This bar chart is your go-to for weekly performance. It shows you a side-by-side comparison of how many people joined (green) versus how many people left (red) each week. You can even drill down to see this data on a daily level!</li><li><strong>Event by Type:</strong> This simple donut chart gives you the overall percentage split between joins and leaves. Is your community growing (more green) or shrinking (more red)? This chart tells you instantly.</li><li><strong>Participants&apos; Growth Per Week:</strong> This line graph shows the cumulative growth of your community over time. It calculates the net change (joins minus leaves) each week to show you the overall growth trajectory.</li><li><strong>Total Participants Per Date:</strong> This chart tracks the absolute number of members across all your monitored groups daily, giving you a clear historical view of your community size.</li></ul><p>The dashboard also includes a <strong>Details</strong> page where you can see a raw log of every single event&#x2014;the date, the type of event (join/leave), the group it happened in, and the phone number involved.</p><h3 id="your-step-by-step-guide-to-building-the-dashboard"><strong>Your Step-by-Step Guide to Building the Dashboard</strong></h3><p>Ready to build your own? Let&apos;s get this set up. It&#x2019;s simpler than you think!</p><h4 id="step-1-get-the-google-sheets-template"><strong>Step 1: Get the Google Sheets Template</strong></h4><p>First things first, you need a place to store your data. We&apos;ve created a Google Sheets template that has all the necessary scripts and tabs already built in.</p><ul><li><strong><a href="https://docs.google.com/spreadsheets/d/1QdajWI92ZlU6wo4_uETDV3NdFN60kKy4JdJvqiN6K7Y/edit?usp=sharing">Google Sheets Template</a>: </strong>Open the link and click <strong>&quot;File&quot; &gt; &quot;Make a copy&quot;</strong> to save it to your own Google Drive. This is now your master file.</li></ul><h4 id="step-2-get-your-2chat-api-key-and-channel-number"><strong>Step 2: Get Your 2Chat API Key and Channel Number</strong></h4><p>Now, let&apos;s get the information we need from your 2Chat account.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://help.2chat.io/en/articles/7830948-where-can-you-find-the-api-key-in-2chat"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Where can you find the API key in 2Chat | 2Chat&#x2019;s Help Center</div><div class="kg-bookmark-description">You can integrate 2Chat with other apps through our Developer API key. Learn here how to get yours.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://intercom.help/2chat/assets/favicon" alt="How to Build a WhatsApp Group Analytics Dashboard with Looker Studio and 2Chat"><span class="kg-bookmark-author">2Chat&apos;s Help Center</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://downloads.intercomcdn.com/i/o/cx9tc5zs/1500464346/b4deee6f04e5d3fee63e0caae2e9/image.png?expires=1765344600&amp;signature=304d565379f924ee053d68df1ff79054c06a3c147ffe07b685f4e15694239a09&amp;req=dSUnFs14mYJbX%2FMW1HO4zQXHhqst7TO8nSELgOn21xX30yTIsz9COGISMapS%0AzmkcrcCVdcoeHX9taEQ%3D%0A" alt="How to Build a WhatsApp Group Analytics Dashboard with Looker Studio and 2Chat"></div></a></figure><ol><li>Log into your <strong>2Chat account</strong>.</li><li>Navigate to the <strong>Developers</strong> section in the left-hand menu.</li><li>Under <strong>API Access</strong>, create a <strong>New API Key</strong>. Give it a memorable name like &quot;Google Sheets Monitor&quot; and copy the key.</li><li>Next, go to the <strong>Channels</strong> section. Copy the <strong>Phone Number</strong> of the WhatsApp channel you want to monitor. <strong>Important:</strong> This number must be an admin in the WhatsApp groups you plan to track!</li></ol><h4 id="step-3-configure-your-google-sheet"><strong>Step 3: Configure Your Google Sheet</strong></h4><p>Head back to the copy of the Google Sheet you made.</p><ol><li>Go to the <strong>&quot;Parameters&quot;</strong> tab.</li><li>Paste your <strong>2Chat API Key</strong> into cell <strong>A2</strong>.</li><li>Paste your <strong>WhatsApp Channel Number</strong> into cell <strong>B2</strong>.</li></ol><h4 id="step-4-generate-your-webhook-url"><strong>Step 4: Generate Your Webhook URL</strong></h4><p>This is where the magic happens. We&apos;ll use a pre-built script in the sheet to create a unique URL that 2Chat can send data to.</p><ol><li>In your Google Sheet, click <strong>&quot;Extensions&quot; &gt; &quot;Apps Script&quot;</strong>.</li><li>A new window with code will open. Don&apos;t worry, you don&apos;t need to write any code!</li><li>Click the <strong>&quot;Deploy&quot;</strong> button in the top right, then select <strong>&quot;New deployment&quot;</strong>.</li><li>A pop-up will appear. Click the gear icon next to &quot;Select type&quot; and choose <strong>&quot;Web app&quot;</strong>.</li></ol><p>Configure the settings:</p><ul><li><strong>Description:</strong> Give it a name, like &quot;WhatsApp Group Monitor v1&quot;.</li><li><strong>Execute as:</strong> Set this to <strong>&quot;Me&quot;</strong> (your Google account).</li><li><strong>Who has access:</strong> Set this to <strong>&quot;Anyone&quot;</strong>.</li><li>Click <strong>&quot;Deploy&quot;</strong>. You may be asked to authorize permissions for the script to run. Go ahead and approve them.</li></ul><p>Once done, it will give you a <strong>Web app URL</strong>. Copy this URL and paste it into the <strong>&quot;Webhook URL&quot;</strong> (cell <strong>C2</strong>) in your &quot;Parameters&quot; tab.</p><h4 id="step-5-schedule-a-daily-snapshot-of-your-participant-count"><strong>Step 5: Schedule a Daily Snapshot of Your Participant Count</strong></h4><p>While the webhook tracks individual joins and leaves, we also want to track the <em>total number of participants</em> each day. This gives us a historical snapshot of our group&apos;s size. We&apos;ll set up an automated trigger to do this.</p><ol><li>Go back to the <strong>Apps Script</strong> editor you had open.</li><li>On the left-hand menu, click on the <strong>Triggers</strong> icon (it looks like a clock).</li><li>Click the <strong>&quot;+ Add Trigger&quot;</strong> button in the bottom right corner.</li><li>Configure the trigger with the following settings:</li></ol><ul><li><strong>Choose which function to run:</strong> Select getWhatsappGroups.</li><li><strong>Choose which deployment should run:</strong> Leave this as Head.</li><li><strong>Select event source:</strong> Choose Time-driven.</li><li><strong>Select type of time-based trigger:</strong> Choose Day timer.</li><li><strong>Select time of day:</strong> We recommend 11pm to Midnight. This will run the script once a day to log the total participant count for that day.</li><li>Click <strong>Save</strong>.</li></ul><h4 id="step-6-set-up-webhooks-in-2chat"><strong>Step 6: Set Up Webhooks in 2Chat</strong></h4><p>Now, we&apos;ll tell 2Chat to send a notification to your new URL every time someone joins or leaves a group.</p><ol><li>Go back to your <strong>2Chat dashboard</strong>.</li><li>Navigate to <strong>Developers &gt; Webhooks</strong>.</li><li>Click <strong>&quot;New Webhook&quot;</strong> and configure the first one:</li><li><strong>URL:</strong> Paste the Web app URL you just copied.</li><li><strong>Channel:</strong> Select the correct WhatsApp channel.</li><li><strong>Events:</strong> Find and select the event <strong>&quot;Someone joined the WhatsApp Group&quot;</strong>.</li><li>Click <strong>Save</strong>.</li></ol><p>Repeat the process to create a second webhook, but this time, for the <strong>Events</strong>, select <strong>&quot;Someone left the WhatsApp Group&quot;</strong>.</p><p>That&apos;s it! Your sheet will now automatically log every time a user joins or leaves one of your groups.</p><h4 id="step-7-set-up-the-looker-studio-report"><strong>Step 7: Set Up the Looker Studio Report</strong></h4><p>The final step is to connect this data to your visual dashboard.</p><ul><li><strong><a href="https://lookerstudio.google.com/reporting/5220324e-b31b-4a65-b488-0621cf534fa5">Looker Studio Template</a></strong></li></ul><ol><li>Open the template and click the three dots (&#x22EE;) in the top right corner, then select <strong>&quot;Make a copy&quot;</strong>.</li><li>Looker Studio will ask you to choose a new data source. For each of the original sources listed, select your own Google Sheet that you just configured. You will need to connect to the GroupLog, GroupStats, and LastDates tabs, respectively.</li><li>Click <strong>&quot;Copy Report&quot;</strong>.</li></ol><p>The report will now be populated with your data! It will update automatically as new events are logged in your Google Sheet.</p><h3 id="key-takeaways-for-your-business"><strong>Key Takeaways for Your Business</strong></h3><p>So, what can you do with this powerful new dashboard?</p><ul><li><strong>Measure Community Health:</strong> Is your group growing or shrinking? Now you have a clear, data-backed answer.</li><li><strong>Track Campaign Impact:</strong> Did you run a promotion or share a link to your group? See exactly how many new members it brought in on a daily or weekly basis.</li><li><strong>Understand Churn:</strong> Are people leaving after a specific announcement or during quiet periods? This data helps you identify patterns so you can improve engagement and retention.</li><li><strong>Make Data-Driven Decisions:</strong> Instead of guessing, you can now use real metrics to guide your WhatsApp community strategy.</li></ul><p>Managing a community is about more than just posting content&#x2014;it&apos;s about understanding its pulse. With this dashboard, you&apos;ve just built your very own stethoscope.</p><h3 id="ready-to-supercharge-your-whatsapp-for-business"><strong>Ready to Supercharge Your WhatsApp for Business?</strong></h3><p>This tutorial is just the beginning of what you can achieve with automation. If you&apos;re ready to unlock the full potential of WhatsApp for marketing, sales, and support, it all starts with the right tools.</p><blockquote class="kg-blockquote-alt"><strong><a href="https://2chat.co/">Sign up for your 2Chat account today</a> and start turning your conversations into conversions!</strong></blockquote>]]></content:encoded></item><item><title><![CDATA[Monitoring WhatsApp Group Joins and Leaves - A Step-by-Step Guide]]></title><description><![CDATA[Learn how to automatically track WhatsApp group member joins and leaves directly in Google Sheets. This step-by-step guide helps you automate community management, save time, and gain valuable data-driven insights for your business.]]></description><link>https://blog.2chat.co/monitoring-whatsapp-group-joins-and-leaves-a-step-by-step-guide/</link><guid isPermaLink="false">690c11092844af92b4240d10</guid><category><![CDATA[automation]]></category><category><![CDATA[whatsapp]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 06 Nov 2025 04:33:05 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/11/2Chat-Group-Monitor-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/11/2Chat-Group-Monitor-1.png" alt="Monitoring WhatsApp Group Joins and Leaves - A Step-by-Step Guide"><p>If you&apos;re using WhatsApp groups to build a community, run a course, or manage customer support, you know how powerful they can be. But you also know the headache of trying to keep track of who&#x2019;s coming and going. Manually checking member lists is time-consuming and, let&apos;s be honest, a bit of a drag.</p><p>What if you could automatically log every single time someone joins or leaves your group directly into a Google Sheet? Imagine having a real-time dashboard of your community&apos;s growth and churn. This data is gold! It helps you understand what&#x2019;s working, when people are most engaged, and when they might be losing interest.</p><p>In this tutorial, we&#x2019;re going to show you exactly how to set up this powerful automation using <strong>2Chat</strong> and a workflow tool called <strong>n8n</strong>. No complex coding required&#x2014;just a simple, step-by-step process to put your community management on autopilot.</p><h4 id="here%E2%80%99s-what-youll-achieve"><strong>Here&#x2019;s What You&apos;ll Achieve</strong></h4><p>Once you&apos;re done, your system will work like this:</p><ul><li><strong>Someone joins your group?</strong> A new row appears in your Google Sheet with their phone number, the date, and the group they joined.</li><li><strong>Someone leaves your group?</strong> Another row appears, logging that they left.</li></ul><p>This creates an effortless, permanent record of all member activity, giving you invaluable insights at a glance.</p><h4 id="what-you%E2%80%99ll-need-before-we-start"><strong>What You&#x2019;ll Need Before We Start</strong></h4><ol><li><strong><a href="https://2chat.co/">A 2Chat Account</a>:</strong> This is the tool that connects your WhatsApp to the automation.</li><li><strong>An n8n Account:</strong> This is the automation platform where we&apos;ll build our workflow.</li><li><strong>A Google Account:</strong> For the <a href="https://docs.google.com/spreadsheets/d/1xLpS6U4-ktBaPVq70WmhFCoXt8N6pCQfVn19IAiD2O0/edit?usp=sharing">Google Sheet</a> where all the magic will be stored.</li><li><strong>Admin Privileges:</strong> This is crucial! The WhatsApp number connected to your 2Chat account <strong>must be an administrator</strong> of the group(s) you want to monitor.</li></ol><h3 id="your-step-by-step-guide-to-automated-tracking"><strong>Your Step-by-Step Guide to Automated Tracking</strong></h3><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/2HpX5wdfnlU?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Automatically track WhatsApp Group joins and leaves with 2Chat"></iframe></figure><p>We&apos;ve created a ready-to-use template for this workflow, so you don&apos;t have to build it from scratch.</p><h4 id="step-1-import-the-workflow-into-n8n"><strong>Step 1: Import the Workflow into n8n</strong></h4><p>First, we need to get the workflow into your n8n canvas.</p><ul><li>Download our pre-built workflow <a href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/2Chat%20WhatsApp%20group%20monitor.json">template file</a></li><li>In your n8n dashboard, click the options menu and select <strong>&quot;Import from File.&quot;</strong></li><li>Select the .json file you just downloaded and import it. You&apos;ll see two workflows appear on your screen: one for monitoring joins and one for monitoring leaves.</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/11/image.png" class="kg-image" alt="Monitoring WhatsApp Group Joins and Leaves - A Step-by-Step Guide" loading="lazy" width="915" height="592" srcset="https://blog.2chat.co/content/images/size/w600/2025/11/image.png 600w, https://blog.2chat.co/content/images/2025/11/image.png 915w" sizes="(min-width: 720px) 720px"></figure><h4 id="step-2-connect-your-2chat-account"><strong>Step 2: Connect Your 2Chat Account</strong></h4><p>Now, let&apos;s connect n8n to 2Chat so they can talk to each other. We&#x2019;ll do this for both the &quot;Joins&quot; and &quot;Leaves&quot; workflows.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://help.2chat.io/en/articles/7830948-where-can-you-find-the-api-key-in-2chat"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Where can you find the API key in 2Chat | 2Chat&#x2019;s Help Center</div><div class="kg-bookmark-description">You can integrate 2Chat with other apps through our Developer API key. Learn here how to get yours.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://intercom.help/2chat/assets/favicon" alt="Monitoring WhatsApp Group Joins and Leaves - A Step-by-Step Guide"><span class="kg-bookmark-author">2Chat&apos;s Help Center</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://downloads.intercomcdn.com/i/o/cx9tc5zs/1500464346/b4deee6f04e5d3fee63e0caae2e9/image.png?expires=1762400700&amp;signature=ecfe9476a7acd0b128fb8fa827ae1cc3fa37b31da8051960f63b97eb00fe50b6&amp;req=dSUnFs14mYJbX%2FMW1HO4zQXHhqwq6Te9nSELgOn21xV0n3bqSXSe7pvsOk%2Fz%0ApU%2Ba9N%2BX66xs94cpHts%3D%0A" alt="Monitoring WhatsApp Group Joins and Leaves - A Step-by-Step Guide"></div></a></figure><ul><li>Click on the first node, the <strong>&quot;2Chat Trigger&quot;</strong> (the one with the WhatsApp icon).</li><li>Under &quot;Credential to connect with,&quot; click <strong>&quot;Create new credential.&quot;</strong></li><li>You&apos;ll need an <strong>API Key</strong>. Think of this as a secure password that lets n8n access your 2Chat data.</li><li>To find it, go to your <strong>2Chat dashboard</strong>, navigate to the <strong>&quot;Developers&quot;</strong> section on the left menu, and click on <strong>&quot;API Keys.&quot;</strong></li><li>Click <strong>&quot;New API Key,&quot;</strong> give it a friendly name (like &quot;n8n Monitor&quot;), and save it.</li><li>Click the copy icon next to your new key.</li><li>Paste this key back into the credential window in n8n and click <strong>Save</strong>.</li></ul><h4 id="step-3-configure-your-triggers"><strong>Step 3: Configure Your Triggers</strong></h4><p>With your account connected, you need to tell the workflow what to watch for.</p><p><strong>For the &quot;Monitor WhatsApp group joins&quot; workflow:</strong></p><ul><li><strong>Events:</strong> Ensure &quot;New Participant Joined WhatsApp Group&quot; is selected.</li><li><strong>Business WhatsApp Channel:</strong> Select the phone number you want to use.</li><li><strong>All Groups:</strong> You can choose to monitor <strong>all</strong> groups; this number is an admin in, or you can select specific groups from the list.</li></ul><p><strong>For the &quot;Monitor WhatsApp group leaves&quot; workflow:</strong></p><ul><li>Do the same, but make sure the <strong>Event</strong> is set to &quot;Participant Left WhatsApp Group.&quot;</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/11/image-1.png" class="kg-image" alt="Monitoring WhatsApp Group Joins and Leaves - A Step-by-Step Guide" loading="lazy" width="404" height="458"></figure><h4 id="step-4-connect-your-google-sheets"><strong>Step 4: Connect Your Google Sheets</strong></h4><p>Next, let&apos;s tell the workflow where to put the data.</p><ul><li>Click on the second node, <strong>&quot;Append row in Sheet.&quot;</strong></li><li>Connect your <strong>Google Sheets account</strong> by following the prompts.</li><li>In the <strong>Document</strong> field, select the Google Sheet you created for this purpose.</li><li>In the <strong>Sheet</strong> field, select the specific tab within that spreadsheet.</li><li><a href="https://docs.google.com/spreadsheets/d/1xLpS6U4-ktBaPVq70WmhFCoXt8N6pCQfVn19IAiD2O0/edit?usp=sharing">The Google Sheets template</a> already maps the data for you (phone number, name, date, etc.), so you don&apos;t need to change anything else here!</li></ul><p>Repeat this process for the Google Sheets node in the &quot;leaves&quot; workflow.</p><h4 id="step-5-activate-your-workflow"><strong>Step 5: Activate Your Workflow!</strong></h4><p>You&apos;re at the finish line!</p><ul><li>Click the <strong>&quot;Save&quot;</strong> button at the top right.</li><li>Toggle the switch from <strong>&quot;Inactive&quot;</strong> to <strong>&quot;Active.&quot;</strong></li></ul><p>That&#x2019;s it! Your automated WhatsApp group monitor is now live. Sit back, relax, and watch the data roll in.</p><h3 id="key-takeaways-for-your-business"><strong>Key Takeaways for Your Business</strong></h3><p>So, what can you actually <em>do</em> with this new superpower?</p><ul><li><strong>Measure Community Growth:</strong> Track your sign-ups and see how your marketing efforts translate into new members.</li><li><strong>Understand Churn:</strong> Identify patterns in when people leave. Was it after a promotional message? Or during a quiet period? This is vital feedback to improve your community strategy.</li><li><strong>Build Your Contact List:</strong> You&apos;re automatically capturing the phone numbers of interested people who join your group, creating a valuable list for future engagement (just be sure to respect privacy and consent!).</li><li><strong>Implement Retention Strategies:</strong> When someone leaves, this automation can be expanded to trigger another action, such as sending a follow-up message to request feedback.</li></ul><p>You&#x2019;ve just saved yourself hours of manual work and unlocked a new layer of insight into your business&apos;s community.</p><hr><blockquote class="kg-blockquote-alt">Ready to put your WhatsApp marketing on autopilot and get data-driven insights? <strong><a href="https://2chat.co/">Sign up for your 2Chat account today</a></strong> and transform how you manage your business communities!</blockquote>]]></content:encoded></item><item><title><![CDATA[Never Lose a WhatsApp File Again: Automated Google Drive Backup for Your Business]]></title><description><![CDATA[Learn to automate WhatsApp file backups to Google Drive using 2Chat. This tutorial shows digital marketing pros and entrepreneurs how to easily organize client documents and boost efficiency.]]></description><link>https://blog.2chat.co/never-lose-a-whatsapp-file-again-automated-google-drive-backup-for-your-business/</link><guid isPermaLink="false">68c240242844af92b4240b96</guid><category><![CDATA[automation]]></category><category><![CDATA[Google Drive]]></category><category><![CDATA[whatsapp]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 11 Sep 2025 04:02:59 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/09/WhatsApp_to_Google_Drive.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/09/WhatsApp_to_Google_Drive.png" alt="Never Lose a WhatsApp File Again: Automated Google Drive Backup for Your Business"><p>From customer inquiries and project updates to sharing essential documents, files are constantly flowing through your chats. However, let&apos;s be honest, manually sifting through conversations to find and save important media can be a significant time drain and a major headache. What if you could automatically save every file your clients send you directly into an organized Google Drive folder? Imagine the time saved, the improved organization, and the peace of mind that comes with knowing all your critical client data is securely backed up and easily accessible.</p><p>With a powerful platform like 2Chat and a little help from Google Apps Script, you can set up a seamless automation that keeps your WhatsApp files perfectly organized in Google Drive. This isn&apos;t just a technical trick; it&apos;s a strategic move to boost your business efficiency, enhance client management, and ensure no important document ever gets lost in the shuffle.</p><p>Ready to transform your WhatsApp workflow? Let&apos;s dive in!</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/pNo_MG3RVYs?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="WhatsApp to Google Drive Auto-Save (2Chat &amp; Apps Script)"></iframe></figure><h3 id="step-1-setting-up-your-2chat-conversation-flow">Step 1: Setting Up Your 2Chat Conversation Flow</h3><p>Your journey to automated file backup begins in 2Chat, where we&#x2019;ll configure a &quot;Conversation Flow&quot; to detect and process incoming files.</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/09/image.png" class="kg-image" alt="Never Lose a WhatsApp File Again: Automated Google Drive Backup for Your Business" loading="lazy" width="1293" height="659" srcset="https://blog.2chat.co/content/images/size/w600/2025/09/image.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/09/image.png 1000w, https://blog.2chat.co/content/images/2025/09/image.png 1293w" sizes="(min-width: 1200px) 1200px"></figure><p><strong>Initiate the Flow:</strong></p><ul><li>Go to <strong>Flows</strong> in your 2Chat dashboard.</li><li>Create a new flow (or modify an existing one).</li><li>Set the trigger: <strong>When</strong> a message is received on your <strong>Business WhatsApp Channel</strong>.</li><li>Set <strong>Flow Memory</strong> to &quot;At least once at any time&quot; with a short interval (e.g., 1 second) to ensure all messages are processed.</li><li>Add a <strong>Conditional Flow</strong> block.</li><li>Configure it to check if the &quot;Last Received Message&quot; <strong>Has media</strong> and if it <strong>Equals</strong> True. This ensures only messages containing files (images, documents, videos) proceed to the next step.</li><li>On the &quot;When True&quot; branch of your conditional flow, add an <strong>HTTP Request</strong> component. This is where 2Chat will send the file&apos;s information to our Google Apps Script. </li><li><strong>Request Type:</strong> Select POST.</li><li><strong>Request URL:</strong> For now, leave this blank. We&apos;ll fill it in later once we deploy our Google Script.</li><li><strong>Body (JSON format):</strong> This is crucial. You&apos;ll send specific data that your Google Script will use to save the file. Here&#x2019;s an example structure:codeJSON</li></ul><pre><code>{
    &quot;message&quot;: &quot;{{message}}&quot;,
    &quot;remote_phone_number&quot;: &quot;{{wa.phoneNumber}}&quot;,
    &quot;destinationFolder&quot;: &quot;2ChatFiles&quot;,
    &quot;allowedFiles&quot;: &quot;pdf,xlsx,docx&quot;,
    &quot;saveYearMonth&quot;: &quot;1&quot;,
    &quot;fileURL&quot;: &quot;{{messageMediaURL}}&quot;
}</code></pre><p><strong>Let&apos;s break down these parameters:</strong></p><ul><li><strong>&quot;message&quot;</strong>: The content of the last received message.</li><li><strong>&quot;remote_phone_number&quot;</strong>: The WhatsApp number of the client who sent the file. This is fantastic for organizing files by client!</li><li><strong>&quot;destinationFolder&quot;</strong>: The name of the main folder in your Google Drive where all 2Chat files will be stored. You&apos;ll need to create this manually (we&apos;ll cover that next).</li><li><strong>&quot;allowedFiles&quot;</strong>: A comma-separated list of file extensions you want to allow (e.g., pdf,xlsx,docx). This helps filter out unwanted file types.</li><li><strong>&quot;saveYearMonth&quot;</strong>: This controls your folder structure. Set to &quot;1&quot; to save files in subfolders organized by year and month (e.g., /2ChatFiles/CLIENT_PHONE_NUMBER/2023/08/file.pdf). Set to &quot;0&quot; to save directly within the client&apos;s phone number folder.</li><li><strong>&quot;fileURL&quot;</strong>: The direct URL to the media file received via WhatsApp. This is what the Google Script will use to download the file.</li></ul><h3 id="step-2-creating-your-google-apps-script">Step 2: Creating Your Google Apps Script</h3><p>Now, let&apos;s create the Google Apps Script that will actually receive the information from 2Chat and save the files to your Google Drive.</p><p><strong>Access Google Apps Script:</strong></p><ul><li>Go to your Google Drive (make sure it&apos;s the account where you want to store your business files!).</li><li>Click on <strong>+ New</strong> &gt; <strong>More</strong> &gt; <strong>Google Apps Script</strong>. This will open a new, untitled Apps Script project.</li><li>Click on &quot;Untitled project&quot; at the top and rename it something descriptive, like &quot;2Chat WhatsApp Files&quot; or &quot;WhatsApp Drive Backup.&quot; This helps keep your projects organized.</li><li>Delete any default code in the Code.gs file.</li><li>You&apos;ll find the necessary script code on the <a href="https://github.com/2ChatCo/Tutorials/blob/main/GoogleAppsScript/2ChatWhatsAppDrive.gs">2Chat GitHub repository</a>. Navigate to the Tutorials repository, then into GoogleAppScript, and open the 2ChatWhatsAppDrive.gs file.</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/09/image-1.png" class="kg-image" alt="Never Lose a WhatsApp File Again: Automated Google Drive Backup for Your Business" loading="lazy" width="1395" height="694" srcset="https://blog.2chat.co/content/images/size/w600/2025/09/image-1.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/09/image-1.png 1000w, https://blog.2chat.co/content/images/2025/09/image-1.png 1395w" sizes="(min-width: 720px) 720px"></figure><ul><li>Copy the entire code from this file.</li><li>Paste it into your Code.gs file in the Google Apps Script editor.</li><li>Click the <strong>Save</strong> to save your project.</li></ul><h3 id="step-3-configuring-and-deploying-your-script">Step 3: Configuring and Deploying Your Script</h3><p>Once the code is in place, you need to deploy it as a web application so 2Chat can communicate with it.</p><p><strong>Deploy as Web App:</strong></p><ul><li>Click the <strong>&quot;Deploy&quot;</strong> button in the top right corner.</li><li>Select <strong>&quot;New deployment.&quot;</strong></li><li>In the &quot;Select type&quot; dropdown, choose <strong>&quot;Web app.&quot;</strong></li><li><strong>Description:</strong> Add a brief description, e.g., &quot;v1&quot; for version 1.</li><li><strong>Execute as:</strong> <em>Crucially</em>, ensure this is set to <strong>&quot;Me (<a href="https://www.google.com/url?sa=E&amp;q=mailto%3Ayour-email%40yourdomain.com">your-email@yourdomain.com</a>)&quot;</strong>. This grants the script permission to access <em>your</em> Google Drive account to save the files.</li><li><strong>Who has access:</strong> Select <strong>&quot;Anyone.&quot;</strong> This allows 2Chat (an external service) to send requests to your script. Don&apos;t worry, the script only saves files, it doesn&apos;t expose your entire Drive.</li><li>Click <strong>&quot;Deploy.&quot;</strong></li></ul><p><strong>Authorize Access:</strong></p><ul><li>A prompt will appear asking for authorization. Click <strong>&quot;Authorize access.&quot;</strong></li><li>Select your Google account.</li><li>Review the permissions (it will ask to see, edit, create, and delete Google Drive files, and connect to an external service). Click <strong>&quot;Allow.&quot;</strong> This gives your script the necessary permissions to function.</li></ul><p><strong>Copy the Web App URL:</strong></p><ul><li>Once authorized, the deployment will complete, and you&apos;ll see a &quot;Deployment succeeded&quot; message.</li><li>Copy the <strong>Web app URL</strong> provided. This is the link 2Chat will use to send file data to your script.</li><li>Click <strong>&quot;Done.&quot;</strong></li></ul><h3 id="step-4-connecting-2chat-to-your-google-script">Step 4: Connecting 2Chat to Your Google Script</h3><p>Now, let&apos;s link your 2Chat flow to your newly deployed Google Apps Script.</p><p><strong>Paste the URL:</strong></p><ul><li>Go back to your 2Chat conversation flow (the browser tab you left open from Step 1).</li><li>In your <strong>HTTP Request</strong> component, paste the copied <strong>Web app URL</strong> into the &quot;Request URL&quot; field.</li><li>Click <strong>&quot;Save Changes&quot;</strong> in the top right corner of 2Chat.</li></ul><div class="kg-card kg-callout-card kg-callout-card-yellow"><div class="kg-callout-emoji">&#x1F4A1;</div><div class="kg-callout-text"><strong>Important:</strong> Ensure your flow is <strong>published</strong>. If not, click the &quot;Live Flow&quot; dropdown and select &quot;Publish.&quot;</div></div><h3 id="step-5-preparing-your-google-drive">Step 5: Preparing Your Google Drive</h3><p>Before testing, make sure your designated destination folder exists in Google Drive.</p><p><strong>Create &quot;2ChatFiles&quot; Folder:</strong></p><ul><li>Go to your Google Drive.</li><li>Click <strong>+ New</strong> &gt; <strong>New folder</strong>.</li><li>Name this folder exactly what you specified in the destinationFolder parameter in your 2Chat HTTP Request body (e.g., 2ChatFiles).</li></ul><h3 id="key-takeaways-for-your-business">Key Takeaways for Your Business:</h3><ul><li><strong>Effortless Organization:</strong> No more searching for lost files! All client documents are neatly categorized by client, year, and month (or directly by client).</li><li><strong>Time-Saving Automation:</strong> Free up valuable hours previously spent on manual file handling. Focus on growing your business, not on administrative tasks.</li><li><strong>Centralized Record-Keeping:</strong> Keep all important client media in a single, accessible, and secure cloud storage location. Perfect for team collaboration and audit trails.</li><li><strong>Enhanced Client Management:</strong> Quickly retrieve client-specific documents, improving your response time and service quality.</li><li><strong>Scalability:</strong> This setup grows with your business. As more clients send files, your system automatically handles the backup.</li></ul><blockquote class="kg-blockquote-alt"><strong>Streamline your WhatsApp Business with ease! Automate file backups and more. Start your free 2Chat trial today!</strong></blockquote><blockquote class="kg-blockquote-alt"><strong><a href="https://2chat.co/">Sign Up for 2Chat Now!</a></strong><br></blockquote>]]></content:encoded></item><item><title><![CDATA[A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat]]></title><description><![CDATA[Set up WhatsApp Business with a virtual number & automate your communications using 2Chat. A step-by-step guide for digital marketing pros & entrepreneurs.]]></description><link>https://blog.2chat.co/a-step-by-step-guide-to-activating-your-business-account-with-a-virtual-number-on-2chat/</link><guid isPermaLink="false">68a699542844af92b4240a74</guid><category><![CDATA[whatsapp]]></category><category><![CDATA[virtual-numbers]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Fri, 22 Aug 2025 03:50:41 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/08/Blogpost-Virtual-Number-WhatsApp-2Chatt.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/08/Blogpost-Virtual-Number-WhatsApp-2Chatt.png" alt="A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat"><p>WhatsApp, with its global reach and user-friendly interface, has become an indispensable tool. But what if you want to keep your personal number separate from your business, or manage multiple business lines without juggling physical SIM cards?</p><p>Enter the <strong>virtual phone number</strong>. Coupled with a powerful platform like <strong><a href="https://2chat.co/">2Chat</a></strong>, virtual numbers offer an elegant solution to streamline your WhatsApp business communications, enhance professionalism, and open doors to incredible automation capabilities.</p><p>In this comprehensive tutorial, we&apos;ll walk you through the process of activating WhatsApp Business with a virtual number and integrating it seamlessly with 2Chat. Get ready to transform your customer interactions!</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/MyS5WMJ1En8?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Activate WhatsApp with a Virtual Phone Number with 2Chat"></iframe></figure><hr><h3 id="section-1-the-foundationgetting-your-virtual-number-ready"><strong>Section 1: The Foundation - Getting Your Virtual Number Ready</strong></h3><p>Before we dive into WhatsApp, you&apos;ll need a virtual number ready to go. The beauty of <a href="https://2chat.co/">2Chat</a> is that it often provides these numbers directly, ensuring they&apos;re compatible with WhatsApp verification.</p><p><strong>Prerequisite:</strong> Ensure you have a virtual number purchased and active within your 2Chat account. </p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://help.2chat.io/en/articles/11920945-how-to-purchase-a-virtual-number"><div class="kg-bookmark-content"><div class="kg-bookmark-title">How to purchase a virtual number | 2Chat&#x2019;s Help Center</div><div class="kg-bookmark-description">Get a local number in over 90 countries.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://intercom.help/2chat/assets/favicon" alt="A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat"><span class="kg-bookmark-author">2Chat&apos;s Help Center</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://downloads.intercomcdn.com/i/o/cx9tc5zs/1651841462/7ab6862f7261316e6a29dcb8cd20/image.png?expires=1755751500&amp;signature=85bf213a504f7334e5d3b896138183b38391c289a68b8d4c456adbefea5fa1f3&amp;req=dSYiF8F6nIVZW%2FMW1HO4zZtFbYbLX2VNUd1X8h4kHB66TTMDBkWvY9orcDwH%0A%2BZLS%2FJ1yWlFrTguXwHg%3D%0A" alt="A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat"></div></a></figure><p><strong>Check Your 2Chat Virtual Numbers:</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/08/image-13.png" class="kg-image" alt="A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat" loading="lazy" width="1288" height="558" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-13.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-13.png 1000w, https://blog.2chat.co/content/images/2025/08/image-13.png 1288w" sizes="(min-width: 720px) 720px"></figure><ul><li>Log into your 2Chat dashboard.</li><li>Navigate to the <strong>Channels</strong> section on the left sidebar.</li><li>Click on <strong>Virtual Number</strong>. Here, you&apos;ll see a list of your purchased virtual numbers. Make sure the number you intend to use has an &quot;Active&quot; status. For this tutorial, we&apos;ll use a Canadian virtual number.</li></ul><p><strong>Install WhatsApp Business on Your Phone:</strong></p><p>Download and install the <strong>WhatsApp Business</strong> app from your mobile device&apos;s app store (Google Play Store for Android, Apple App Store for iOS).</p><p>Open the app and agree to the terms and conditions.</p><h3 id="section-2-verifying-your-virtual-whatsapp-number"><strong>Section 2: Verifying Your Virtual WhatsApp Number</strong></h3><p>This is where 2Chat&apos;s integration truly shines. Traditional WhatsApp verification relies on SMS, which a virtual number might not receive directly on your phone. However, 2Chat is designed to capture these verification calls.</p><p><strong>Enter Your Virtual Number in WhatsApp Business:</strong></p><ul><li>On the &quot;Verify your phone number&quot; screen, select the country associated with your virtual number (e.g., &quot;Canada&quot;).</li><li>Carefully enter your <strong>full virtual phone number</strong>.</li><li>Tap &quot;Next.&quot;</li></ul><p><strong>Wait for the Voice Call Option:</strong></p><p>WhatsApp will first attempt to send an SMS verification code. Since your phone doesn&apos;t have a physical SIM for the virtual number, this SMS won&apos;t arrive on your device.</p><p><em>Be patient.</em> After a short waiting period (usually 10-15 minutes, as shown in the video), WhatsApp Business will offer a &quot;<strong>Voice call</strong>&quot; option. This is the key!</p><p>Select the <strong>&quot;Voice call&quot;</strong> option and tap &quot;Continue.&quot;</p><p><strong>Receive the Verification Call via 2Chat:</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/08/image-17.png" class="kg-image" alt="A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat" loading="lazy" width="1063" height="553" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-17.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-17.png 1000w, https://blog.2chat.co/content/images/2025/08/image-17.png 1063w" sizes="(min-width: 720px) 720px"></figure><p>At this point, you&apos;ll hear a ringtone, and an &quot;Incoming call&quot; notification will appear directly on your 2Chat dashboard (web interface).</p><ul><li><strong>Click &quot;Answer&quot;</strong> within your 2Chat dashboard. An automated voice will dictate your 6-digit WhatsApp verification code. Listen carefully and note it down.</li></ul><p><strong>Complete WhatsApp Business Setup:</strong></p><p>After hanging up the call in 2Chat, return to your WhatsApp Business app on your phone. </p><p>Enter the 6-digit verification code you received via the 2Chat call and WhatsApp will verify the number. Success! You can now proceed to:</p><ul><li>Grant necessary permissions (contacts, media).</li><li>Create your business profile (business name, category, etc.).</li><li>Set up a catalog, greeting messages, and other WhatsApp Business features as you normally would.</li></ul><p>Your virtual number is now fully active on WhatsApp Business!</p><h3 id="section-3-connecting-your-whatsapp-to-2chat-for-automation"><strong>Section 3: Connecting Your WhatsApp to 2Chat for Automation</strong></h3><p>Now that your virtual number is active on WhatsApp Business, let&apos;s link it to 2Chat to unlock powerful multi-agent, chatbot, and CRM integration features.</p><p><strong>Initiate a New Connection in 2Chat:</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/08/image-18.png" class="kg-image" alt="A Step-by-Step Guide to Activating Your WhatsApp Business Account with a Virtual Number on 2Chat" loading="lazy" width="1292" height="566" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-18.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-18.png 1000w, https://blog.2chat.co/content/images/2025/08/image-18.png 1292w" sizes="(min-width: 720px) 720px"></figure><ul><li>Back in your 2Chat dashboard, ensure you are in the <strong>Channels</strong> section, under <strong>WhatsApp</strong>.</li><li>Click the <strong>&quot;+ New Connection&quot;</strong> button (usually in the top right corner).</li></ul><p><strong>Configure the Channel:</strong></p><ul><li>In the &quot;Channel configuration&quot; window, enter your <strong>virtual phone number</strong> (the same one you just verified on your phone).</li><li>Give it a <strong>&quot;Friendly name&quot;</strong> that&apos;s easy to identify (e.g., &quot;2Chat Virtual Assistant&quot; or &quot;My Business Line&quot;).</li><li>You have the option to &quot;Enable importing&quot; to synchronize contacts. For this tutorial, we&apos;ll skip it, but consider if it&apos;s right for your business.</li><li>Click <strong>&quot;Add &amp; Connect.&quot;</strong></li></ul><p><strong>Scan the QR Code:</strong></p><p>2Chat will generate a unique <strong>QR code</strong>. This code is essential for linking your WhatsApp Business app to the 2Chat platform.</p><p><strong>On your phone, in the WhatsApp Business app:</strong></p><ul><li>Go to <strong>Settings</strong> (for iPhone) or <strong>Menu (&#x22EE;)</strong> (for Android).</li><li>Select <strong>Linked Devices</strong>.</li><li>Tap <strong>&quot;Link a Device.&quot;</strong></li><li>Your phone&apos;s camera will activate. Scan the QR code displayed on your 2Chat dashboard.</li><li>Once scanned, you&apos;ll be prompted to name the linked device on your phone (e.g., &quot;Desktop Office&quot;). This helps you identify which device is linked to 2Chat.</li><li>Click &quot;Save.&quot;</li></ul><p>Congratulations! Your virtual WhatsApp Business number is now seamlessly connected to 2Chat.</p><h3 id="section-4-key-considerations-for-a-smooth-experience"><strong>Section 4: Key Considerations for a Smooth Experience</strong></h3><p>To ensure your virtual WhatsApp number and 2Chat integration run smoothly, keep these important points in mind:</p><p><strong>Keep Your Phone Active:</strong> 2Chat&apos;s connection to WhatsApp Web (which powers this integration) requires your phone to be online and connected to the internet at least once every 14 days. This keeps the connection alive.</p><p><strong>Contact Sync:</strong> Group chats and imported contacts may take a few minutes to appear in 2Chat after initial setup or contact import is enabled.</p><p><strong>Bulk Messaging Caution:</strong> Be aware that new WhatsApp numbers (including virtual ones) may be subject to temporary bans if used for excessive bulk messaging too quickly. Gradually increase your sending volume to build trust with WhatsApp&apos;s algorithms.</p><p><strong>2Chat Support:</strong> If you encounter any issues or need further assistance, don&apos;t hesitate to reach out to 2Chat&apos;s support team via their support bubble.</p><h3 id="conclusion-empower-your-business-communications"><strong>Conclusion: Empower Your Business Communications</strong></h3><p>By activating WhatsApp Business with a virtual number and integrating it with 2Chat, you&apos;ve taken a significant step towards modernizing your business communication strategy. This setup provides:</p><ul><li><strong>Professionalism:</strong> A dedicated business number separate from your personal life.</li><li><strong>Scalability:</strong> The ability to manage your WhatsApp presence from a centralized platform, ready for team collaboration.</li><li><strong>Automation Potential:</strong> Leverage 2Chat&apos;s advanced features like chatbots, flows, and CRM integrations to automate responses, manage leads, and enhance customer service.</li></ul><p>Stop missing out on leads and start delivering exceptional customer experiences. Your business deserves a robust communication system.</p><blockquote class="kg-blockquote-alt"><strong>Ready to elevate your WhatsApp Business communications?&#x1F449; <a href="https://2chat.co/">Visit 2Chat.co and sign up today!</a></strong></blockquote>]]></content:encoded></item><item><title><![CDATA[How to get and configure a new WhatsApp Cloud API phone number]]></title><description><![CDATA[Learn how to get and set up a WhatsApp Cloud API number using a virtual number. Step-by-step guide to configure your account and enhance business communication.]]></description><link>https://blog.2chat.co/how-to-get-and-configure-whatsapp-cloud-api-phone-number/</link><guid isPermaLink="false">6890fbf42844af92b424083d</guid><category><![CDATA[whatsapp-business-api]]></category><category><![CDATA[WABA]]></category><category><![CDATA[virtual-numbers]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Mon, 04 Aug 2025 20:24:35 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/08/2Chat-Cloud-API.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/08/2Chat-Cloud-API.png" alt="How to get and configure a new WhatsApp Cloud API phone number"><p>To create a new WhatsApp Cloud API number, you&apos;ll need to connect an existing number or get a new virtual number. This tutorial covers obtaining a new virtual phone number and using it to set up a new WhatsApp account.</p><div class="kg-card kg-callout-card kg-callout-card-blue"><div class="kg-callout-emoji">&#x1F4A1;</div><div class="kg-callout-text">If you instead need to create a new WhatsApp Messenger or WhatsApp Business (app) account, check out <a href="https://help.2chat.io/en/articles/11810135-how-to-activate-whatsapp-with-a-virtual-phone-number">this article</a>.</div></div><h3 id="find-a-new-number-using-2chat">Find a new number using 2Chat</h3><ul><li>Go to <a href="https://app.2chat.io/channels/virtual-number/new">https://app.2chat.io/channels/virtual-number/new</a> and select the country and area code you need.</li></ul><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="2000" height="1144" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image.png 1000w, https://blog.2chat.co/content/images/size/w1600/2025/08/image.png 1600w, https://blog.2chat.co/content/images/2025/08/image.png 2210w" sizes="(min-width: 720px) 720px"><figcaption>New virtual number for WhatsApp</figcaption></figure><ul><li>Make sure to follow the instructions on the screen to buy it, or check <a href="https://help.2chat.io/en/articles/11920945-how-to-purchase-a-virtual-number">this tutorial that explains it in detail</a>.</li><li>Once the number is purchased and activated for inbound calls, you should be able to see it inside your 2Chat account.</li></ul><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image-2.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1610" height="1034" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-2.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-2.png 1000w, https://blog.2chat.co/content/images/size/w1600/2025/08/image-2.png 1600w, https://blog.2chat.co/content/images/2025/08/image-2.png 1610w" sizes="(min-width: 720px) 720px"><figcaption>Purchased virtual number</figcaption></figure><h3 id="adding-your-new-number-in-meta-business-manager">Adding your new number in Meta Business Manager</h3><ul><li>Go to <a href="https://business.facebook.com/">Meta Business Manager</a>, then select <strong><em><a href="https://business.facebook.com/latest/whatsapp_manager/phone_numbers">WhatsApp Manager &gt; Phone numbers</a></em></strong><em>.</em></li></ul><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image-3.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="2000" height="985" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-3.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-3.png 1000w, https://blog.2chat.co/content/images/size/w1600/2025/08/image-3.png 1600w, https://blog.2chat.co/content/images/2025/08/image-3.png 2298w" sizes="(min-width: 720px) 720px"><figcaption>Meta Business Manager for WhatsApp</figcaption></figure><ul><li>Click on <strong><em>Add phone number</em></strong>.</li><li>Fill up the WhatsApp profile for your new number.</li></ul><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image-6.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1658" height="952" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-6.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-6.png 1000w, https://blog.2chat.co/content/images/size/w1600/2025/08/image-6.png 1600w, https://blog.2chat.co/content/images/2025/08/image-6.png 1658w" sizes="(min-width: 720px) 720px"><figcaption>Public WhatsApp profile configuration</figcaption></figure><ul><li>Add the number you purchased from 2Chat.</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/08/image-7.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1670" height="550" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-7.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-7.png 1000w, https://blog.2chat.co/content/images/size/w1600/2025/08/image-7.png 1600w, https://blog.2chat.co/content/images/2025/08/image-7.png 1670w" sizes="(min-width: 720px) 720px"></figure><ul><li>Open the new number from the list, go to Profile, then click on <strong>Send verification code</strong>.</li></ul><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image-8.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1516" height="770" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-8.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-8.png 1000w, https://blog.2chat.co/content/images/2025/08/image-8.png 1516w" sizes="(min-width: 720px) 720px"><figcaption>Send WhatsApp verification code</figcaption></figure><ul><li>Choose <strong>Phone call</strong>.</li></ul><div class="kg-card kg-callout-card kg-callout-card-yellow"><div class="kg-callout-emoji">&#x1F4A1;</div><div class="kg-callout-text">Make sure you are logged in at app.2chat.io before clicking on <em>Next</em>. You will receive the activation call there.</div></div><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image-9.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1222" height="528" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-9.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-9.png 1000w, https://blog.2chat.co/content/images/2025/08/image-9.png 1222w" sizes="(min-width: 720px) 720px"><figcaption>Phone call activation</figcaption></figure><ul><li>A phone call will arrive at app.2chat.io where you have logged in. Answer it and take note of the activation code given.</li></ul><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.2chat.co/content/images/2025/08/image-10.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="776" height="954" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-10.png 600w, https://blog.2chat.co/content/images/2025/08/image-10.png 776w" sizes="(min-width: 720px) 720px"><figcaption>Activation call arriving on 2Chat</figcaption></figure><ul><li>Enter the activation code and click on <strong><em>Next</em></strong>.</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/08/image-11.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1222" height="566" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-11.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-11.png 1000w, https://blog.2chat.co/content/images/2025/08/image-11.png 1222w" sizes="(min-width: 720px) 720px"></figure><p>Now your number is verified and ready for use!</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/08/image-12.png" class="kg-image" alt="How to get and configure a new WhatsApp Cloud API phone number" loading="lazy" width="1272" height="748" srcset="https://blog.2chat.co/content/images/size/w600/2025/08/image-12.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/08/image-12.png 1000w, https://blog.2chat.co/content/images/2025/08/image-12.png 1272w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, & Google Sheets]]></title><description><![CDATA[Build a WhatsApp AI chatbot for instant order status! Automate customer service with 2Chat, n8n, & Google Sheets. Perfect for businesses, startups, & marketers.]]></description><link>https://blog.2chat.co/automate-order-status-build-an-ai-chatbot-on-whatsapp-with-2chat-n8n/</link><guid isPermaLink="false">688987cf2844af92b4240770</guid><category><![CDATA[AI]]></category><category><![CDATA[automation]]></category><category><![CDATA[chatbot]]></category><category><![CDATA[whatsapp]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 31 Jul 2025 03:51:52 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/07/2Chat-Order-Status-Chatbot-4.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/07/2Chat-Order-Status-Chatbot-4.png" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets"><p>As a business owner, digital marketing professional, or startup founder, you know the drill: the phone rings, emails pile up, and your team spends countless hours answering the same questions about order statuses. While keeping customers informed is crucial, this repetitive task can drain valuable resources and pull your team away from critical growth initiatives.</p><p>But what if your customers could get instant, accurate updates on their orders 24/7, directly on WhatsApp, without a single human touch?</p><p>Imagine freeing up your customer service agents to handle more complex issues, nurturing leads, or focusing on personalized outreach. This isn&apos;t a futuristic fantasy; it&apos;s a tangible reality with the power of AI chatbots integrated into your existing systems.</p><p>In this comprehensive tutorial, we&apos;ll walk you through building a powerful AI chatbot on WhatsApp that connects directly to your Google Sheets data. We&apos;ll leverage <a href="https://2chat.co/"><strong>2Chat</strong> </a>for seamless WhatsApp integration, <strong>n8n</strong> as your robust automation backbone, and of course, <strong>Google Sheets</strong> as your flexible data repository. Get ready to supercharge your customer service and give your business a competitive edge!</p><p>You will need:</p><ul><li><a href="https://2chat.co/"><strong>2Chat</strong></a><strong> </strong>account</li><li>n8n account to upload this template</li></ul><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/Order%20Status%20Agent.json"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Tutorials/n8n/Order Status Agent.json at main &#xB7; 2ChatCo/Tutorials</div><div class="kg-bookmark-description">Contribute to 2ChatCo/Tutorials development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">2ChatCo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/be90e658a7d456ca5e837fb93a12763c4f21308a4c6b85c2cc23d8e05ef1203e/2ChatCo/Tutorials" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets"></div></a></figure><ul><li>This <a href="https://docs.google.com/spreadsheets/d/1hiFbH1pm-wKqfvXUT6SoB_MFWwhH0OJ9RZITkGKM7HI/edit?usp=sharing">Google Sheet template</a></li></ul><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/vqLeMJ1rNCw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="AI WhatsApp Chatbot for Order Status | n8n + 2Chat Tutorial"></iframe></figure><p><strong>Try our official n8n node</strong></p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://n8n.io/integrations/2chat/"><div class="kg-bookmark-content"><div class="kg-bookmark-title">2Chat integrations | Workflow automation with n8n</div><div class="kg-bookmark-description">Integrate 2Chat with hundreds of other apps. Create sophisticated automations between 2Chat and your stack using n8n. Free and source-available.</div><div class="kg-bookmark-metadata"><span class="kg-bookmark-author">n8n.io</span><span class="kg-bookmark-publisher">igordisco</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://n8n.io/n8n-og-image.png" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets"></div></a></figure><p></p><h3 id="the-foundation-your-google-sheet-data">The Foundation: Your Google Sheet Data</h3><p>Our chatbot will rely on a simple yet effective data source: a <a href="https://docs.google.com/spreadsheets/d/1hiFbH1pm-wKqfvXUT6SoB_MFWwhH0OJ9RZITkGKM7HI/edit?usp=sharing">Google Sheet template</a>. This keeps things accessible and easy to manage, especially for startups and small businesses.</p><p>Your Google Sheet should contain essential order information. In our example, we use the following columns:</p><ul><li><strong>Order ID:</strong> The unique identifier for each order.</li><li><strong>Order Status:</strong> Current status (e.g., &quot;Received,&quot; &quot;In Transit,&quot; &quot;Delivered,&quot; &quot;With Issues&quot;).</li><li><strong>Notes:</strong> Any relevant details about the order.</li><li><strong>Customer Name:</strong> The name of the customer.</li><li><strong>Delivery Date:</strong> The estimated or actual delivery date.</li></ul><p></p><blockquote><strong>Pro-Tip for Entrepreneurs:</strong> The beauty here is flexibility! You can easily add more columns to your Google Sheet (e.g., product details, tracking links, special instructions). The AI agent is smart enough to leverage any relevant information you provide, making your chatbot even more powerful over time.</blockquote><h3 id="how-the-magic-happens-the-n8n-workflow">How the Magic Happens: The n8n Workflow</h3><p>At the heart of our intelligent chatbot lies <strong>n8n</strong>, an open-source workflow automation tool. Think of n8n as the &quot;brain&quot; that connects different services and orchestrates the entire process. It receives the WhatsApp message, understands what the customer wants, fetches the data, and prepares the response.</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/07/image-14.png" class="kg-image" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets" loading="lazy" width="795" height="465" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-14.png 600w, https://blog.2chat.co/content/images/2025/07/image-14.png 795w"></figure><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/Order%20Status%20Agent.json"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Tutorials/n8n/Order Status Agent.json at main &#xB7; 2ChatCo/Tutorials</div><div class="kg-bookmark-description">Contribute to 2ChatCo/Tutorials development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">2ChatCo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/be90e658a7d456ca5e837fb93a12763c4f21308a4c6b85c2cc23d8e05ef1203e/2ChatCo/Tutorials" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets"></div></a></figure><p>Here&apos;s a breakdown of the n8n workflow components:</p><p><strong>The Webhook &#x2013; Your Chatbot&apos;s Listening Ear:</strong></p><p>This is the entry point. When a customer sends a message on WhatsApp, 2Chat will trigger this webhook. It acts as a secure bridge, receiving the customer&apos;s message and phone number, and passing them to the AI agent.</p><p><strong>The AI Agent &#x2013; The Brain of Your Chatbot:</strong></p><p>This is where the artificial intelligence comes into play. The AI Agent takes the customer&apos;s raw message and processes it.</p><p><strong>System Prompt:</strong> This is a set of instructions you give the AI to define its role and behavior. For our order status chatbot, the prompt tells the AI to act as a customer service assistant, focus on retrieving order information, and maintain a professional and supportive tone. This prompt is crucial for guiding the AI&apos;s responses.</p><!--kg-card-begin: markdown--><pre><code>**Situation**
You are a customer service AI assistant specializing in order information retrieval for a company&apos;s purchase order system. Customers interact with you to obtain specific details about their orders.

**Task**
Retrieve and display precise order information when a customer provides a valid order number. Verify the order number&apos;s authenticity and provide a comprehensive yet concise order status report.

**Objective**
Deliver accurate, transparent, and helpful order information to enhance customer satisfaction and support efficient customer service interactions.

**Knowledge**
- Required input: Valid Order Number
- Available order information fields: 
  1. OrderID
  2. OrderStatus
  3. Notes
  4. CustomerName
  5. DeliveryDate
- Strict validation required for order number input
- Protect customer data privacy

**Constraints**
- Only respond with order details if a valid order number is provided
- Do not fabricate or guess order information
- If order number is invalid, return a clear, apologetic message explaining the issue

**Response Guidelines**
1. Confirm the order number&apos;s validity
2. If valid, display all available order information in a clear, structured format
3. If invalid, provide a helpful guidance message
4. Maintain a professional and supportive tone throughout the interaction

**Error Handling**
- If no order number is provided, prompt the customer to enter their order number
- If multiple order numbers are entered, request clarification
- Ensure no sensitive information is disclosed inappropriately
</code></pre>
<!--kg-card-end: markdown--><p><strong>AI Model (e.g., OpenAI GPT-4.1-mini):</strong> The AI Agent uses a powerful language model (like GPT-4.1-mini, or any other compatible model you choose) to understand natural language, extract key information (like the order ID), and generate human-like responses.</p><p><strong>Simple Memory:</strong> This component gives your chatbot short-term memory. It remembers the last few interactions with a specific customer (identified by their WhatsApp phone number). This allows for a more fluid conversation, so customers don&apos;t have to repeat themselves.</p><p><strong>Google Sheets Integration &#x2013; Fetching the Data:</strong></p><p>After the AI Agent understands the customer&apos;s request and identifies an order ID, it uses this Google Sheets integration node to retrieve the relevant row from your &quot;2Chat Order Status&quot; sheet.</p><p>It&apos;s configured to search specifically by the &quot;Order ID&quot; column. The remarkable part is that the AI <em>automatically</em> extracts the order ID from the conversation, even if the customer phrases their request differently each time.</p><p>As mentioned earlier, you can add more columns to your Google Sheet, and the AI agent, guided by its prompt, can incorporate that new information into its responses!</p><p><strong>Respond to Webhook &#x2013; Sending Info Back:</strong></p><p>Once the order information is retrieved and processed by the AI Agent into a user-friendly message, this node sends the final response back to 2Chat, which then forwards it to the customer on WhatsApp.</p><h3 id="bringing-it-to-life-2chat-integration">Bringing it to Life: 2Chat Integration</h3><p><strong><a href="https://2chat.co/">2Chat</a></strong> is your platform for managing WhatsApp Business API conversations. It serves as the bridge between your customers&apos; WhatsApp messages and your n8n workflow.</p><p>Here&#x2019;s how you set up the conversation flow in 2Chat:</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/07/image-15.png" class="kg-image" alt="Automate Order Status: Build an AI Chatbot on WhatsApp with 2Chat, n8n, &amp; Google Sheets" loading="lazy" width="1449" height="723" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-15.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/07/image-15.png 1000w, https://blog.2chat.co/content/images/2025/07/image-15.png 1449w" sizes="(min-width: 1200px) 1200px"></figure><p><strong>Initial Step (Trigger):</strong></p><p>You start by defining when the flow should be triggered. In this case, it&apos;s &quot;When a new message is received&quot; from your &quot;2Chat Virtual Assistant&quot; WhatsApp channel. This ensures that every incoming customer message starts the process.</p><p><strong>Make an HTTP Request:</strong></p><p>This is the critical link to your n8n workflow. You&apos;ll set up an HTTP POST request pointing to the Production URL of your n8n Webhook.</p><p>In the request body (JSON format), you&apos;ll send two crucial pieces of information from 2Chat to n8n:</p><ul><li><strong>last_user_message</strong>: Contains the actual text message sent by the customer (using 2Chat&apos;s {{message}} variable).</li><li><strong>from_number</strong>: Contains the customer&apos;s WhatsApp phone number (using 2Chat&apos;s {{wa.phoneNumber()}} variable). This is vital for the &quot;Simple Memory&quot; in n8n.</li></ul><p><strong>Handle the Response &amp; Send Message:</strong></p><p>Once n8n processes the request and sends back the AI&apos;s response, 2Chat captures this. You&apos;ll map the output from n8n&apos;s response to a Custom Field in 2Chat, let&apos;s call it agentmessage. Finally, a &quot;<em>Send Message and Wait for Reply</em>&quot; component uses this <em>agentmessage </em>custom field to send the AI&apos;s tailored response directly back to the customer on WhatsApp. The &quot;Wait for Reply&quot; part is key: it keeps the conversation loop active, ready for the customer&apos;s next message, and feeds it back into the n8n flow.</p><h4 id="key-takeaways-for-your-business"><strong>Key Takeaways for Your Business</strong></h4><p>Building an AI order status chatbot is more than just a tech novelty; it&apos;s a strategic move for your business:</p><ul><li><strong>Boost Operational Efficiency:</strong> Dramatically reduce the time and effort spent on repetitive customer inquiries.</li><li><strong>Elevate Customer Experience:</strong> Offer immediate, personalized support that sets you apart from competitors.</li><li><strong>Empower Your Team:</strong> Free up human agents to focus on complex problem-solving, sales, and nurturing relationships.</li><li><strong>Leverage Existing Data:</strong> Turn your Google Sheets into a dynamic, interactive customer service tool.</li><li><strong>Future-Proof Your Support:</strong> Lay the groundwork for more advanced AI-driven customer interactions.</li></ul><p>This powerful combination of 2Chat, n8n, and Google Sheets offers a scalable, efficient, and intelligent solution for managing customer order inquiries. It&apos;s time to transform your customer service from a cost center into a true competitive advantage!</p><blockquote class="kg-blockquote-alt"><strong>Ready to streamline your customer service and leverage the power of AI on WhatsApp? </strong>Sign up for a 2Chat account today and start building your smart chatbot!<strong> Visit: <a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2F2chat.co">2chat.co</a></strong></blockquote><hr>]]></content:encoded></item><item><title><![CDATA[How to Build a WhatsApp AI Chatbot for Appointment Booking]]></title><description><![CDATA[Automate WhatsApp appointments with an AI chatbot. Boost efficiency & CX 24/7. Learn to set up seamless scheduling using 2Chat, n8n & Google Calendar for business owners, startups, & marketers.]]></description><link>https://blog.2chat.co/streamline-your-schedule-how-to-build-a-whatsapp-ai-chatbot-for-appointment-booking/</link><guid isPermaLink="false">6875c8492844af92b4240690</guid><category><![CDATA[whatsapp]]></category><category><![CDATA[n8n]]></category><category><![CDATA[automation]]></category><category><![CDATA[chatbot]]></category><category><![CDATA[AI]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 17 Jul 2025 04:26:34 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/07/2Chat-AI-chatbot-appointment-4.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/07/2Chat-AI-chatbot-appointment-4.png" alt="How to Build a WhatsApp AI Chatbot for Appointment Booking"><p>Let&apos;s start by walking through what your customer will experience. Picture this: a potential client wants to book a dental cleaning.</p><ul><li><strong>Initial Greeting:</strong> Your chatbot, connected via WhatsApp, greets them instantly.</li><li><strong>Appointment Request:</strong> The client types something like, &quot;Hello, I&apos;d like a dental cleaning next Monday.&quot;</li><li><strong>Information Gathering:</strong> The AI agent immediately understands the request and politely asks for the necessary details: preferred time, name, email, and phone number. This is crucial for personalization and accurate scheduling.</li><li><strong>Confirmation &amp; Availability Check:</strong> Once the client provides their information (e.g., &quot;My name is John Doe, my email is <a href="https://www.google.com/url?sa=E&amp;q=mailto%3Ajohn%402chat.co">john@2chat.co</a>, phone 123456789&quot;), the chatbot processes it. In the background, it instantly checks your Google Calendar for available slots for &quot;next Monday.&quot;</li><li><strong>Real-time Updates:</strong> If the requested 9 AM slot is already booked, the chatbot intelligently responds by listing <em>available</em> times (e.g., 10 AM, 11 AM, 12 PM, etc.) and asks the client to choose. This avoids frustrating &quot;unavailable&quot; messages and keeps the conversation flowing.</li><li><strong>Final Confirmation:</strong> Once a time is selected, the appointment is booked in your Google Calendar, and the chatbot sends a final confirmation message with all appointment details directly to the client via WhatsApp. It&apos;s fast, efficient, and professional!</li></ul><p>This automated process not only saves time but significantly enhances the customer experience, making it easier for them to do business with you.</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/SBVSLk-gSS0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Automate Bookings 24/7 with a #WhatsApp #AI Agent (#n8n + 2Chat)"></iframe></figure><h3 id="the-backend-magic-how-your-ai-chatbot-works-powered-by-n8n"><strong>The Backend Magic: How Your AI Chatbot Works (Powered by n8n)</strong></h3><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/07/image-12.png" class="kg-image" alt="How to Build a WhatsApp AI Chatbot for Appointment Booking" loading="lazy" width="940" height="544" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-12.png 600w, https://blog.2chat.co/content/images/2025/07/image-12.png 940w" sizes="(min-width: 720px) 720px"></figure><p>Now, let&apos;s peek behind the curtain at the sophisticated yet straightforward setup that makes this possible using <strong>n8n</strong>, a powerful workflow automation tool. You can download the n8n template from the following link, and you can import.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/2Chat%20Business%20appointment.json"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Tutorials/n8n/2Chat Business appointment.json at main &#xB7; 2ChatCo/Tutorials</div><div class="kg-bookmark-description">Contribute to 2ChatCo/Tutorials development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="How to Build a WhatsApp AI Chatbot for Appointment Booking"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">2ChatCo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/469a5d8bb7180b2466d50db76fd24791c739eb52acf2278dc1ead94fc7d98291/2ChatCo/Tutorials" alt="How to Build a WhatsApp AI Chatbot for Appointment Booking"></div></a></figure><p>Your n8n workflow acts as the brain of your chatbot, connecting WhatsApp (via 2Chat) to your Google Calendar and an advanced AI agent. Here&#x2019;s a simplified breakdown of the core components:</p><p><strong>The Webhook: Your Chatbot&apos;s Inbox</strong></p><p>This is the entry point for all incoming WhatsApp messages from 2Chat. It acts like a digital mailroom, receiving messages and forwarding them to the AI agent for processing.</p><p><strong>The AI Agent: The Intelligent Conversationalist</strong></p><p>This is where the magic of artificial intelligence happens. The AI Agent node uses a <strong>Chat Model</strong> (like OpenAI&apos;s GPT) and a <strong>Simple Memory</strong> component to:</p><p><strong>Understand Context:</strong> Thanks to &quot;Simple Memory,&quot; the chatbot remembers previous interactions in the conversation. This means if a user says &quot;next Monday,&quot; and then later asks about &quot;availability,&quot; the bot knows they&apos;re still talking about next Monday&apos;s appointments. It uses the WhatsApp phone number as a unique identifier for each conversation, ensuring personalized recall.</p><p><strong>Execute Tasks:</strong> The AI agent is pre-programmed with a &quot;System Message&quot; &#x2013; a set of instructions that define its role, tasks, and objectives. For our dental clinic example, this system message includes:</p><!--kg-card-begin: markdown--><pre><code>**Situation**
You are an AI assistant for a dental clinic&apos;s Google Calendar system, operating on {{ DateTime.local().toFormat(&apos;cccc d LLLL yyyy&apos;) }}. The clinic requires precise and professional calendar management for patient appointments.

**Task**
Manage dental clinic appointments by:
1. Creating appointments with complete patient and service details
2. Checking calendar availability
3. Providing clear, helpful communication about scheduling options

**Objective**
Optimize patient scheduling by ensuring:
- Accurate appointment booking
- Efficient time slot management
- Seamless patient experience

**Knowledge**
Critical scheduling parameters:
- Appointment duration: 1 hour
- Operating hours: 8 am to 6 pm
- Date format: YYYY-MM-DD HH:mm:ss
- Required appointment details:
  * start_date
  * end_date
  * email
  * name
  * service_required
  * phone number

Booking Rules:
- Do not create events for busy time slots
- If requested time is unavailable, provide alternative slots on the same day
- Event description must include:
  * Customer name
  * Service
  * Customer phone number

**Examples**
Appointment Creation Example:
- Name: John Doe
- Service: Dental Cleaning
- Start Date: 2023-12-15 10:00:00
- End Date: 2023-12-15 11:00:00
- Email: john.doe@example.com
- Phone: +1234567890

Communication Guidelines:
- Be proactive in gathering missing information
- Confirm all details before finalizing
- Match communication language to user&apos;s input
- Provide clear, helpful guidance

When initial request is vague:
1. Explain capabilities
2. List dental services
3. Request specific appointment date
</code></pre>
<!--kg-card-end: markdown--><ul><li><strong>Situation:</strong> &quot;You are an AI assistant for a dental clinic&apos;s Google Calendar system...&quot;</li><li><strong>Tasks:</strong> Manage appointments (create, check details), check calendar availability, and provide clear scheduling options.</li><li><strong>Objectives:</strong> Optimize patient scheduling, ensure accurate booking, efficient time slot management, and seamless patient experience.</li><li><strong>Knowledge:</strong> Critical details like appointment duration (1 hour), operating hours (8 AM to 6 PM), required patient information (name, email, service, phone number), and date formats.</li><li><strong>Booking Rules:</strong> Important guidelines include not creating events for busy time slots and providing alternatives if a time is unavailable.</li><li><strong>Communication Guidelines:</strong> How the bot should interact (proactive, confirming details, matching language).</li></ul><p><strong>This detailed &quot;System Message&quot; is crucial.</strong> It&apos;s what you&apos;ll customize for <em>your</em> specific business to ensure the AI behaves exactly as you need it to, handling everything from service types to booking rules.</p><p><strong>Google Calendar Tools: Your Scheduling Powerhouse</strong></p><p>The AI agent interacts with two key Google Calendar nodes:</p><ul><li><strong>Google Calendar: Check Availability.</strong> When a client requests available times, this tool queries your designated business calendar (we highly recommend creating a <em>separate</em> calendar for business appointments, distinct from your personal calendar, for better organization and data integrity). It checks for busy slots based on the &quot;start_date&quot; provided by the AI and retrieves all available times.</li><li><strong>Google Calendar: Create Appointment:</strong> Once a time is confirmed, this tool creates the actual event in your business calendar. It pulls all necessary details (start/end dates, client email, service description, and event title) directly from the information the AI agent extracted from the conversation.</li></ul><p><strong>Respond to Webhook: Sending the Message Back</strong></p><p>After the AI agent has processed the request and/or interacted with Google Calendar, this node formats the final response and sends it back to 2Chat, which then delivers it to your client on WhatsApp.</p><h3 id="connecting-the-dots-2chat-integration"><strong>Connecting the Dots: <a href="https://2chat.co/">2Chat</a> Integration</strong></h3><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/07/image-13.png" class="kg-image" alt="How to Build a WhatsApp AI Chatbot for Appointment Booking" loading="lazy" width="1366" height="720" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-13.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/07/image-13.png 1000w, https://blog.2chat.co/content/images/2025/07/image-13.png 1366w" sizes="(min-width: 1200px) 1200px"></figure><p><strong>2Chat</strong> acts as the crucial link between your WhatsApp Business API and the n8n backend. Its conversation flow is designed to be simple and efficient:</p><p><strong>Initial Trigger:</strong> The flow starts when a &quot;Message Received&quot; event occurs on your Business WhatsApp Channel.</p><p><strong>HTTP Request to n8n:</strong> An <strong>HTTP node</strong> immediately sends a POST request to your n8n webhook. The request body includes:</p><!--kg-card-begin: markdown--><pre><code>{
  &quot;last_user_message&quot;: &quot;{{message}}&quot;,
  &quot;from_number&quot;: &quot;{{wa.phoneNumber}}&quot;
}
</code></pre>
<!--kg-card-end: markdown--><ul><li><em>last_user_message</em>: The exact message the client sent.</li><li><em>from_number</em>: The client&apos;s WhatsApp phone number (essential for the &quot;Simple Memory&quot; in n8n to maintain conversation context).</li></ul><p><strong>Wait for Reply:</strong> A &quot;Message and Wait for Reply&quot; node is set up to receive the response from n8n. It maps the output variable from n8n (which contains the chatbot&apos;s generated response) to a custom field, ready to be sent back to the user.</p><p><strong>Looping Conversation:</strong> The &quot;HTTP&quot; node is connected back to the &quot;Wait for Reply&quot; node, creating a continuous loop. This ensures that the conversation seamlessly flows back and forth between the client on WhatsApp and your intelligent AI agent in n8n.</p><h3 id="key-takeaways-for-your-business"><strong>Key Takeaways for Your Business</strong></h3><p>Implementing an appointment scheduling chatbot offers immense value for digital marketing professionals, business owners, startups, and entrepreneurs:</p><ul><li><strong>24/7 Availability:</strong> Your chatbot never sleeps, allowing clients to book appointments at their convenience, even outside business hours.</li><li><strong>Enhanced Customer Experience:</strong> Instant responses and seamless interactions lead to higher customer satisfaction and loyalty.</li><li><strong>Significant Time Savings:</strong> Automate repetitive scheduling tasks, freeing up your staff to focus on more complex or revenue-generating activities.</li><li><strong>Reduced Errors:</strong> Minimize human error in booking, leading to fewer double-bookings or missed appointments.</li><li><strong>Scalability:</strong> Easily handle a growing volume of appointment requests without needing to hire additional staff.</li><li><strong>Data Insights:</strong> By integrating with Google Calendar, you get a centralized view of your schedule and can analyze appointment trends.</li><li><strong>Professional Image:</strong> Project a modern, tech-savvy image to your clients, showcasing your commitment to efficiency and customer service.</li></ul><p>This powerful combination of 2Chat, n8n, and Google Calendar is an invaluable tool for any service-based business, whether you run a dental clinic, a medical office, a salon, a restaurant, or any operation requiring advanced bookings.</p><p><strong>Ready to transform your appointment scheduling and reclaim valuable time?</strong> Start exploring how to integrate these tools into your business workflow today!</p><blockquote><strong>Ready to Revolutionize Your Scheduling? </strong>Don&apos;t let manual appointment booking hold your business back! Apply the powerful strategies from this tutorial and start automating your client interactions today. <strong><a href="https://2chat.co/">Sign up for your 2Chat account now</a></strong> and transform your WhatsApp into an efficient, 24/7 appointment-booking powerhouse.</blockquote>]]></content:encoded></item><item><title><![CDATA[Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)]]></title><description><![CDATA[Automate WhatsApp lead capture to HubSpot CRM 24/7 with AI! Never miss leads outside business hours. Get our step-by-step integration guide using 2Chat, n8n & OpenAI for business owners & marketers.]]></description><link>https://blog.2chat.co/automate-whatsapp-lead-capture-to-hubspot-crm-with-ai/</link><guid isPermaLink="false">68620b5c2844af92b424062c</guid><category><![CDATA[AI]]></category><category><![CDATA[automation]]></category><category><![CDATA[chatbot]]></category><category><![CDATA[whatsapp]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 03 Jul 2025 04:00:51 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/07/2Chat-n8n-Lead-Capture-hubspot-Chatibot-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/07/2Chat-n8n-Lead-Capture-hubspot-Chatibot-1.png" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)"><p>As a busy digital marketing professional, business owner, startup founder, or entrepreneur, you know that every lead counts. But what happens when those leads reach out via channels like WhatsApp <em>after</em> business hours? Do they get an immediate response, or do they hit a wall until the next day?</p><p>Missing out on after-hours inquiries means missing out on potential customers. But constantly monitoring messaging apps 24/7 just isn&apos;t sustainable (or healthy!).</p><p>The good news? You can leverage the power of AI and automation to create a tireless lead-capturing agent that works around the clock and feeds directly into your HubSpot CRM. This means no more missed opportunities and higher quality leads ready for your team when they&apos;re back online.</p><p>In this tutorial, we&apos;ll break down how to build a conversational AI agent that lives on WhatsApp, collects lead information even outside of business hours, and automatically creates new contacts in your HubSpot CRM. We&apos;ll be using a powerful stack: <strong>WhatsApp (via 2Chat), n8n for automation, OpenAI for the AI smarts, and HubSpot CRM</strong> to keep everything organized.</p><p>Let&apos;s dive in and see how you can set this up for your business.</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/FbektXTHf9A?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="&#x1F680; Build a 24/7 #WhatsApp #AI Lead Capture Chatbot in #Hubspot (2Chat, #n8n, #OpenAI Tutorial)"></iframe></figure><h3 id="the-tech-stack-powering-your-ai-lead-agent">The Tech Stack Powering Your AI Lead Agent</h3><p>Before we get into the <em>how</em>, let&apos;s quickly look at the tools involved and their roles:</p><ul><li><strong>WhatsApp (via <a href="https://2chat.co/">2Chat</a>):</strong> Your direct line to customers. 2Chat is used here to manage the WhatsApp business channel and conversation flows.</li><li><strong>n8n:</strong> The automation engine that connects everything. It receives messages, talks to the AI, and sends data to HubSpot. Think of it as the central nervous system.</li><li><strong>OpenAI:</strong> Provides conversational intelligence. This AI model understands the user&apos;s messages and, guided by n8n, extracts the necessary lead information.</li><li><strong>HubSpot CRM:</strong> Your database. This is where all the captured lead information will be stored neatly as new contact records.</li></ul><h3 id="setting-the-stage-in-your-hubspot-crm">Setting the Stage in Your HubSpot CRM</h3><p>The first crucial step is to prepare your HubSpot account to receive data from our AI agent.</p><p><strong>Create a &quot;Base&quot; Contact:</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/07/image.png" class="kg-image" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)" loading="lazy" width="779" height="529" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image.png 600w, https://blog.2chat.co/content/images/2025/07/image.png 779w" sizes="(min-width: 720px) 720px"></figure><ul><li>Navigate to your Contacts in HubSpot.</li><li>Create a <em>new</em> contact record specifically for leads coming in via WhatsApp. You might name it something like &quot;WhatsApp Leads&quot; or similar.</li><li><strong>Why do this?</strong> This gives you a central contact record to <em>associate</em> all incoming WhatsApp leads with. This helps you quickly identify leads originating from this channel and keeps your main contact list more organized and up-to-date.</li><li>Find this &quot;WhatsApp Leads&quot; contact and make a note of its <strong>Record ID</strong>. You&apos;ll need this unique identifier later to link new leads to it. (As shown in the video, you can find this by going to the contact&apos;s properties and searching for &quot;Record ID&quot;).</li></ul><p><strong>Create a HubSpot Private App:</strong></p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/07/image-1.png" class="kg-image" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)" loading="lazy" width="1815" height="629" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-1.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/07/image-1.png 1000w, https://blog.2chat.co/content/images/size/w1600/2025/07/image-1.png 1600w, https://blog.2chat.co/content/images/2025/07/image-1.png 1815w" sizes="(min-width: 1200px) 1200px"></figure><ul><li>A Private App allows n8n (or any external tool) to securely interact with your specific HubSpot account via the API.</li><li>Go to <strong>Settings</strong> (the gear icon).</li><li>Under <strong>Integrations</strong>, find <strong>Private Apps</strong>.</li><li>Click <strong>Create a private app</strong>.</li><li>Give it a descriptive name, like &quot;2Chat Leads App&quot; or &quot;WhatsApp Lead Capture&quot;.</li><li><strong>Crucially, set the API Scopes.</strong> This determines what the app can <em>see</em> and <em>do</em> in your HubSpot. For lead capture and association, you&apos;ll need the following permissions under the CRM section:</li><li><code>crm.objects.contacts.read</code></li><li><code>crm.objects.contacts.write</code></li><li><code>crm.schemas.contacts.read</code></li><li><code>crm.schemas.contacts.write</code></li><li>Click <strong>Create app</strong>. HubSpot will generate an <strong>Access Token</strong>. This is your secret key! <strong>Copy this token and keep it secure.</strong> You&apos;ll need it to authorize n8n&apos;s requests.</li></ul><h3 id="building-the-automation-workflow-in-n8n">Building the Automation Workflow in n8n</h3><p>Now, let&apos;s assemble the brain of our operation in n8n. The video shows a simple workflow: Webhook -&gt; AI Agent -&gt; Respond to Webhook (after sending data to HubSpot).</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/07/image-2.png" class="kg-image" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)" loading="lazy" width="875" height="459" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-2.png 600w, https://blog.2chat.co/content/images/2025/07/image-2.png 875w" sizes="(min-width: 720px) 720px"></figure><p><strong>Start with the Webhook Trigger:</strong></p><ul><li>Add a <strong>Webhook</strong> node to your n8n workflow.</li><li>Set the <strong>HTTP Method</strong> to <strong>POST</strong>.</li><li>Give it a <strong>Path</strong> (e.g., <code>/hubspotlead</code>). This path will be part of the URL you&apos;ll give to 2Chat.</li><li>Under <strong>Respond</strong>, select <strong>Using Respond to Webhook Node</strong>. This tells the webhook to wait for a response from a specific node later in the workflow.</li><li>Activate the workflow to get the <strong>Production URL</strong>. Copy this URL. This is where 2Chat will send messages.</li></ul><p><strong>Add the AI Agent:</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/07/image-3.png" class="kg-image" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)" loading="lazy" width="652" height="790" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-3.png 600w, https://blog.2chat.co/content/images/2025/07/image-3.png 652w"></figure><ul><li>Add an <strong>AI Agent</strong> node.</li><li>Choose <strong>Tools Agent</strong> as the Agent type.</li><li>For <strong>Prompt Source</strong>, select <strong>User Message</strong>. The text will be <code>{{$json.body.last_user_message}}</code> (This pulls the actual message text from the data sent by 2Chat).</li><li>Under <strong>System Message</strong>, write instructions for your AI agent. This prompt is critical for defining its behavior. The video uses a prompt like:</li></ul><pre><code>**Situation:**
You are a customer service assistant operating during non-business hours when the main customer service team is unavailable. Customers are reaching out for support but cannot receive immediate assistance from human representatives.

**Objective:**
Maintain excellent customer service standards during off-hours by ensuring customers feel heard and valued while systematically collecting all necessary information needed for the customer service team to follow up effectively. Your goal is to enable proper follow-up during business hours.

**Task:**
Information needed for the customer service team to follow up effectively:
- Customer first name
- Customer last name
- Company where the customer works for
- Contact email
- Phone number for contact using call or WhatsApp

When you collect all required contact information (by asking for each parameter in separate, individual questions), ensure you gather every piece of information needed for the customer service team to follow up effectively.

When you create the lead using the corresponding tool, politely inform the user that customer service will contact you as soon as possible and say good-bye.
</code></pre><p><em>You can customize this prompt to fit your specific business needs.</em></p><ul><li>Make sure the AI Chat Model and Memory nodes are connected to the AI Agent. A <strong>Window Buffer Memory</strong> is recommended to keep the conversation context.</li></ul><p><strong>Add the HTTP Request Node (Sending Data to HubSpot):</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/07/image-4.png" class="kg-image" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)" loading="lazy" width="634" height="876" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-4.png 600w, https://blog.2chat.co/content/images/2025/07/image-4.png 634w"></figure><ul><li>Add an <strong>HTTP Request</strong> node.</li><li>Set the <strong>Description</strong> to something like &quot;Send contact info to HubSpot&quot;. This description is <em>important</em> as the AI Agent will use it to decide if <em>this</em> is the right tool to use.</li><li>Set the <strong>Method</strong> to <strong>POST</strong>.</li><li>Set the <strong>URL</strong> to the HubSpot Contacts API endpoint for creating/updating contacts: <code>https://api.hubapi.com/crm/v3/objects/contacts</code>.</li><li>Under <strong>Send Headers</strong>, turn the toggle on.</li><li>Add two Header Parameters:</li><li><strong>Name:</strong> <code>Authorization</code>, <strong>Value Provided:</strong> <code>Using Field Below</code>, <strong>Value:</strong> <code>Bearer YOUR_PRIVATE_APP_TOKEN</code> (Replace <code>YOUR_PRIVATE_APP_TOKEN</code> with the token you copied from HubSpot).</li><li><strong>Name:</strong> <code>Content-Type</code>, <strong>Value Provided:</strong> <code>Using Field Below</code>, <strong>Value:</strong> <code>application/json</code></li><li>Under <strong>Send Body</strong>, turn the toggle on.</li><li>Set the <strong>Specify Body</strong> to <strong>Using JSON Below</strong>.</li><li>Here you&apos;ll paste the JSON structure for creating/updating a contact and linking it. This is where you use the Placeholder Definitions the AI needs to fill. Referencing the video and HubSpot API docs, the structure looks something like this (using the example placeholders):</li></ul><pre><code class="language-json">{
  &quot;associations&quot;: [
    {
      &quot;to&quot;: {
        &quot;id&quot;: &quot;YOUR_WHATSAPP_LEADS_CONTACT_ID&quot;
      },
      &quot;types&quot;: [
        {
          &quot;associationCategory&quot;: &quot;HUBSPOT_DEFINED&quot;,
          &quot;associationTypeId&quot;: 449
        }
      ]
    }
  ],
  &quot;properties&quot;: {
    &quot;firstname&quot;: &quot;{{$json.firstName}}&quot;,
    &quot;lastname&quot;: &quot;{{$json.lastName}}&quot;,
    &quot;company&quot;: &quot;{{$json.company}}&quot;,
    &quot;email&quot;: &quot;{{$json.email}}&quot;,
    &quot;mobilephone&quot;: &quot;{{$json.phoneNumber}}&quot;,
    &quot;hs_whatsapp_phone_number&quot;: &quot;{{$json.phoneNumber}}&quot;
  }
}
</code></pre><p><em>Replace <code>YOUR_WHATSAPP_LEADS_CONTACT_ID</code> with the Record ID of the &quot;WhatsApp Leads&quot; contact you created in HubSpot.</em></p><ul><li>Under <strong>Placeholder Definitions</strong>, click &quot;Add Definition&quot; for each piece of information you want the AI to extract and fill in the JSON body.</li><li><strong>Placeholder Name:</strong> <code>firstName</code>, <strong>Description:</strong> <code>Customer first name</code>, <strong>Type:</strong> <code>String</code></li><li><strong>Placeholder Name:</strong> <code>lastName</code>, <strong>Description:</strong> <code>Customer&apos;s last name</code>, <strong>Type:</strong> <code>String</code></li><li><strong>Placeholder Name:</strong> <code>company</code>, <strong>Description:</strong> <code>Company where the customer works for</code>, <strong>Type:</strong> <code>String</code></li><li><strong>Placeholder Name:</strong> <code>email</code>, <strong>Description:</strong> <code>Contact email</code>, <strong>Type:</strong> <code>String</code></li><li><strong>Placeholder Name:</strong> <code>phoneNumber</code>, <strong>Description:</strong> <code>Phone number for contact using call or Whatsapp</code>, <strong>Type:</strong> <code>String</code></li><li><em>You can add more placeholders for other HubSpot fields you want to capture.</em></li><li>Connect the AI Agent node&apos;s output (the extracted data based on placeholders) to the HTTP Request node&apos;s input.</li></ul><p><strong>Add the Respond to Webhook Node:</strong></p><ul><li>Add a <strong>Respond to Webhook</strong> node.</li><li>Set <strong>Respond With</strong> to the <strong>First incoming item</strong>.</li><li>Connect the AI Agent node&apos;s output to this node. This sends the AI&apos;s conversational response back to 2Chat.</li></ul><blockquote class="kg-blockquote-alt"><strong>Activate Your n8n Workflow:</strong> Make sure your n8n workflow is set to <strong>Active</strong>.</blockquote><h3 id="configuring-the-2chat-conversation-flow">Configuring the 2Chat Conversation Flow</h3><p>Finally, let&apos;s set up the 2Chat side to trigger the n8n workflow and handle the conversation.</p><ol><li><strong>Create a Conversation Flow:</strong></li></ol><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/07/image-5.png" class="kg-image" alt="Stop Missing Leads! Automate WhatsApp Lead Capture to HubSpot CRM with AI (A Step-by-Step Guide)" loading="lazy" width="1119" height="713" srcset="https://blog.2chat.co/content/images/size/w600/2025/07/image-5.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/07/image-5.png 1000w, https://blog.2chat.co/content/images/2025/07/image-5.png 1119w" sizes="(min-width: 720px) 720px"></figure><ul><li>In 2Chat, create a new Conversation Flow.</li><li>Set the <strong>Initial Step</strong> trigger to <strong>When it was triggered on</strong> your <strong>Business WhatsApp Channel</strong> and a <strong>Message received</strong>.</li><li>Add a &quot;Send WhatsApp Message&quot; node for the initial welcome message that&apos;s sent <em>within</em> business hours.</li><li>Add a &quot;Last Received Message&quot; node immediately after the trigger.</li><li>Configure the <strong>Condition editor</strong> for the &quot;Last Received Message&quot; node:</li><li>Set <strong>If Message time</strong> to <strong>outside time range</strong>.</li><li>Set the <strong>Time Range</strong> to your business hours (e.g., Monday to Friday, 9 AM to 6 PM). Make sure the <strong>Time zone</strong> is correct.</li><li>Connect the &quot;When False&quot; branch of the &quot;Last Received Message&quot; node to your &quot;Send WhatsApp Message&quot; node (for the &apos;within business hours&apos; message).</li><li>Connect the &quot;When True&quot; branch (outside business hours) to an <strong>HTTP Request</strong> node.</li><li>In the 2Chat HTTP Request node:</li><li>Set <strong>Request Type</strong> to <strong>POST</strong>.</li><li>Set <strong>Request URL</strong> to the <strong>Production URL</strong> of your n8n webhook (the one you copied earlier).</li><li>Under <strong>Body</strong>, use <code>{{last_user_message}}</code> to send the user&apos;s message text and <code>{{wa.phoneNumber}}</code> to send their phone number to n8n. The JSON body should look like:</li></ul><pre><code class="language-json">{
  &quot;last_user_message&quot;: &quot;{{last_user_message}}&quot;,
  &quot;from_number&quot;: &quot;{{wa.phoneNumber}}&quot;
}
</code></pre><ul><li>Connect the &quot;When request succeeded&quot; branch of the 2Chat HTTP Request node to a &quot;Message and Wait for Reply&quot; node.</li><li>In the &quot;Message and Wait for Reply&quot; node:</li><li>In the text area, reference the message output from your n8n AI agent. You&apos;ll use a placeholder like <code>{{your_n8n_ai_output_field}}</code>. <em>Based on the video&apos;s hint</em>, n8n sends back a JSON with a field called &quot;message&quot;. So, you&apos;ll use <code>{{message}}</code> if you map the n8n output to a custom field named <code>message</code> in 2Chat (as shown at 15:06).</li><li>In the &quot;Save reply in a Custom Field&quot; section, map the n8n AI response output (<code>$output</code> in n8n&apos;s test response) to a 2Chat Custom Field. The video shows mapping <code>$output</code> from the HTTP Request node&apos;s response to a Custom Field named <code>message</code>. This <code>message</code> custom field is then used in the &quot;Message and Wait for Reply&quot; node.</li><li>Connect the output of the &quot;Message and Wait for Reply&quot; node <em>back</em> to the &quot;Last Received Message&quot; node. This creates a loop, allowing the conversation to continue until the AI agent finishes collecting information and provides its final response.</li></ul><h3 id="the-magic-in-action-how-it-works">The Magic in Action: How It Works</h3><ol><li>A potential customer sends a message to your WhatsApp business number.</li><li>2Chat receives the message and checks the time.</li><li>If it&apos;s outside your specified business hours, the conversation flow routes to call your n8n webhook.</li><li>The n8n webhook receives the user&apos;s message and phone number.</li><li>The AI Agent processes the message using its system prompt and tools. It understands its goal is to collect specific contact information.</li><li>The AI Agent uses its memory to maintain the conversation context and asks the user for their name, company, email, and phone number, one by one.</li><li>As the user provides the information, the AI Agent extracts it.</li><li>Once the AI has all the required details (as defined by the Placeholder Definitions in the HTTP Request node), it uses the HTTP Request node to send this data to your HubSpot CRM via the API.</li><li>HubSpot receives the data, creates a new contact record (or updates an existing one if the email/phone matches), and associates it with your &quot;WhatsApp Leads&quot; base contact.</li><li>The AI Agent generates a final polite message (e.g., confirming receipt and saying someone will follow up during business hours).</li><li>This final message is sent back to 2Chat via the Respond to Webhook node.</li><li>2Chat sends the AI&apos;s final message to the user on WhatsApp.</li><li>The conversation flow loops back to the &quot;Wait for Reply&quot; stage, ready for the next message from the user, while the lead data is already in your HubSpot CRM.</li></ol><h3 id="why-this-matters-for-your-business">Why This Matters for Your Business</h3><p>Implementing an AI agent like this isn&apos;t just cool tech; it&apos;s a smart business move:</p><ul><li><strong>Never Miss a Lead:</strong> Capture valuable prospect information 24/7, even when your team is unavailable.</li><li><strong>Improved Data Quality:</strong> Automate the collection of essential contact details and ensure they land directly in your CRM.</li><li><strong>Boost Efficiency:</strong> Free up your team from monitoring after-hours messages and basic information gathering.</li><li><strong>Scalability:</strong> Easily handle a higher volume of initial inquiries without increasing staff immediately.</li><li><strong>Enhanced Customer Experience:</strong> Provide an immediate, albeit automated, response to show prospects you&apos;re available, even outside standard hours.</li></ul><h3 id="key-takeaways">Key Takeaways</h3><ul><li>Integrating WhatsApp (via 2Chat) with HubSpot CRM using n8n and OpenAI enables automated, after-hours lead capture.</li><li>Setting up a base contact and a Private App with the correct scopes in HubSpot is essential for API access.</li><li>n8n orchestrates the workflow, using a Webhook as a trigger, an AI Agent to process messages and extract data, and an HTTP Request node to send data to HubSpot.</li><li>A well-defined System Message and Placeholder Definitions are key to guiding the AI Agent.</li><li>Associating new contacts with a central &quot;WhatsApp Leads&quot; contact in HubSpot helps track the source.</li><li>The 2Chat conversation flow manages the user interaction and routes messages based on conditions like business hours.</li></ul><p>This setup might require a bit of initial configuration, but the benefits of automating your lead capture and ensuring no prospect falls through the cracks are well worth the effort. Now you can have an AI working for you, keeping your CRM populated with fresh leads, day and night!</p>]]></content:encoded></item><item><title><![CDATA[Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide]]></title><description><![CDATA[Discover how to create a WhatsApp chatbot that sends images with messages. This step-by-step guide uses Two Chat, N8N, and AI to enhance customer interactions with embedded product images, providing a more engaging experience]]></description><link>https://blog.2chat.co/enhancing-whatsapp-chatbots-with-embedded-images-a-step-by-step-guide/</link><guid isPermaLink="false">6847adec2844af92b4240556</guid><category><![CDATA[whatsapp]]></category><category><![CDATA[automation]]></category><category><![CDATA[chatbot]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 12 Jun 2025 03:45:02 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/06/2Chat-n8n-Image-Chatibot.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/06/2Chat-n8n-Image-Chatibot.png" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide"><p>Businesses are constantly seeking innovative ways to engage with their customers, and one effective method is through chatbots. In this blog post, we will explore how to create a simple chatbot that can send images along with text messages on WhatsApp. By integrating images into your chatbot responses, you can provide a more engaging and informative experience. Let&apos;s dive into how you can achieve this using 2Chat, n8n, and an AI model.</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/kunzFoqz9-0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Enhance Your Chatbot: Send Images via WhatsApp with AI, n8n, and 2Chat #AI #n8n #whatsapp"></iframe></figure><h2 id="step-1-setting-up-the-chatbot-flow-in-2chat">Step 1: Setting Up the Chatbot Flow in 2Chat</h2><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="1264" height="653" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/06/image.png 1000w, https://blog.2chat.co/content/images/2025/06/image.png 1264w" sizes="(min-width: 720px) 720px"></figure><h3 id="message-received-trigger">Message Received Trigger</h3><p>The flow starts with a &quot;Message Received&quot; trigger. This trigger listens for incoming messages from users. Message and Wait for Reply Component</p><p>Once a message is received, the &quot;Message and Wait for Reply&quot; component captures the user&apos;s question. This component is crucial as it allows the chatbot to interact with the user in real-time.</p><h3 id="http-request-to-ai-endpoint">HTTP Request to AI Endpoint</h3><p>Next, we use an HTTP request to send the customer&apos;s message to an AI endpoint we will create in n8n. The body of the request includes a JSON structure with the last user message and the customer&apos;s phone number.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-1.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="558" height="483"></figure><!--kg-card-begin: markdown--><pre><code class="language-json">{
    &quot;last_user_message&quot;: &quot;{{message}}&quot;,  
    &quot;customer_phone_number&quot;: &quot;wa.phoneNumber&quot;
}
</code></pre>
<!--kg-card-end: markdown--><h3 id="wait-and-return">Wait and Return</h3><p>The web service does not return a direct message. Instead, it sends the WhatsApp message directly to the user. We add a wait of 10 seconds and then return to the &quot;Message and Wait for Reply&quot; component to continue the conversation.</p><h2 id="step-2-configuring-the-web-service-in-n8n">Step 2: Configuring the Web Service in n8n</h2><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/06/image-5.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="1322" height="432" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-5.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/06/image-5.png 1000w, https://blog.2chat.co/content/images/2025/06/image-5.png 1322w" sizes="(min-width: 1200px) 1200px"></figure><p>Download n8n template:</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/n8n_image_bot.json"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Tutorials/n8n/n8n_image_bot.json at main &#xB7; 2ChatCo/Tutorials</div><div class="kg-bookmark-description">Contribute to 2ChatCo/Tutorials development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">2ChatCo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/49d3a8f1823a3a99c532f47dab780604015a21d2a33553f1b46f036c049f855e/2ChatCo/Tutorials" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide"></div></a></figure><h3 id="webhook-component">Webhook Component</h3><p>The web service is created using n8n. The flow starts with a Webhook component, which receives the production URL used in the 2Chat HTTP component.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-3.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="815" height="348" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-3.png 600w, https://blog.2chat.co/content/images/2025/06/image-3.png 815w" sizes="(min-width: 720px) 720px"></figure><h3 id="ai-agent-configuration">AI Agent Configuration</h3><p>In the AI agent, we include behavior guidelines and details about the restaurant products in the system prompt. Importantly, we also provide publicly available image URLs for each product. This is essential because 2Chat requires a publicly available image URL to embed it in the WhatsApp conversation.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-4.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="644" height="796" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-4.png 600w, https://blog.2chat.co/content/images/2025/06/image-4.png 644w"></figure><p>Sample System Prompt:</p><!--kg-card-begin: markdown--><pre><code>You are an assistant for a fast food restaurant. Always say hello to the user, inform that he is talking with a Restaurant and offer a simple list for the menu. Provide a brief description and price for each of the following items and add the image link avoid using \n in the text, id the answer doesn&apos;t have http add https://2Chat.co

Pizza
https://images.pexels.com/photos/842519/pexels-photo-842519.jpeg
Description: A delicious pizza with a variety of toppings including pepperoni, mushrooms, and extra cheese.
Price: $12.99
Hotdog
https://images.pexels.com/photos/30635915/pexels-photo-30635915.jpeg
Description: A classic hotdog with a juicy sausage, topped with mustard, ketchup, onions, and relish.
Price: $4.99

Burger
https://images.pexels.com/photos/1251198/pexels-photo-1251198.jpeg
Description: A mouth-watering burger with a beef patty, lettuce, tomato, cheese, and special sauce.
Price: $7.99
</code></pre>
<!--kg-card-end: markdown--><h3 id="connecting-the-llm-model">Connecting the LLM Model</h3><p>We connect the LLM (Language Model) model, in this case, OpenAI, but you can use your preferred model. A window memory buffer with the customer&apos;s phone number as the key is used to maintain the context of the conversation.</p><h3 id="extracting-image-urls">Extracting Image URLs</h3><p>The AI agent uses the WhatsApp message as the prompt. A code component, written in Python, extracts the image URL from the AI response. This URL is then used to return the message to the customer with the embedded image.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-6.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="866" height="562" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-6.png 600w, https://blog.2chat.co/content/images/2025/06/image-6.png 866w" sizes="(min-width: 720px) 720px"></figure><!--kg-card-begin: markdown--><pre><code class="language-python">import re
# Loop over input items and add a new field called &apos;myNewField&apos; to the JSON of each one
for item in _input.all():
  url =re.search(&apos;http.+\/\/.+[a-z]&apos;, item.json.output)
  if url:
    item.json.url = url[0]
  else:
    item.json.url = &quot;&quot;
  item.json.output=item.json.output.replace(&quot;\n&quot;,&quot;&quot;)
return _input.all()
</code></pre>
<!--kg-card-end: markdown--><h2 id="step-3-sending-the-message-with-embedded-image">Step 3: Sending the Message with Embedded Image</h2><h3 id="http-request-to-2chat-api">HTTP Request to 2Chat API</h3><p>The last component uses an HTTP request to connect n8n with 2Chat. The <a href="https://developers.2chat.co/docs/API/WhatsApp/send-message">2Chat API documentation</a> provides detailed information on how to use the &quot;Send Message&quot; method. You need to provide the image URL as a parameter, along with the text message.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-7.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="635" height="720" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-7.png 600w, https://blog.2chat.co/content/images/2025/06/image-7.png 635w"></figure><h3 id="json-body-for-the-http-request">JSON Body for the HTTP Request</h3><p>The HTTP component in n8n sends requests to the 2Chat API using the &quot;Send Message&quot; method. The API key is included in the header, and a JSON body is dynamically generated. This body contains both the text message and the image URL if an image URL is present in the LLM response.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-8.png" class="kg-image" alt="Enhancing WhatsApp Chatbots with Embedded Images: A Step-by-Step Guide" loading="lazy" width="658" height="552" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-8.png 600w, https://blog.2chat.co/content/images/2025/06/image-8.png 658w"></figure><!--kg-card-begin: markdown--><pre><code class="language-json">{
 &quot;to_number&quot;: &quot;{{ $(&apos;Webhook&apos;).item.json.body.to_number }}&quot;,
 &quot;from_number&quot;: &quot;+573054684700&quot;,
 &quot;text&quot;: &quot;{{ $json.output }}&quot;,
 &quot;url&quot;: &quot;{{ $json.url }}&quot;
}
</code></pre>
<!--kg-card-end: markdown--><h2 id="conclusion">Conclusion</h2><p>By following these steps, you can easily enhance your chatbots with embedded images, providing a richer and more engaging experience for your customers. Utilizing 2Chat, n8n, and an AI model, you can create a seamless and interactive communication channel on WhatsApp.</p>]]></content:encoded></item><item><title><![CDATA[Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat]]></title><description><![CDATA[Learn to create a chatbot with N8N in minutes. Use your knowledge and WhatsApp to set up an efficient and fast chatbot service. Download the template and get started now!]]></description><link>https://blog.2chat.co/transform-your-knowledge-into-a-whatsapp-chatbot-a-guide-to-using-n8n/</link><guid isPermaLink="false">6822aa482844af92b4240440</guid><category><![CDATA[AI]]></category><category><![CDATA[automation]]></category><category><![CDATA[chatbot]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Wed, 14 May 2025 03:06:40 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/05/2Chat-n8n-OpenAI-Chatibot.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/05/2Chat-n8n-OpenAI-Chatibot.png" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat"><p>In this blog post, we&#x2019;ll walk you through the process of creating a chatbot service using N8N. With the help of a flow template provided by <a href="https://2chat.co/">2Chat</a>, you can set up your chatbot in just a few minutes. Let&#x2019;s dive in!</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/4G6zc1gIjgE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Building and Training a WhatsApp AI Support Agent with 2Chat and n8n | Step-by-Step Guide"></iframe></figure><p><strong>Try our official n8n node</strong></p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://n8n.io/integrations/2chat/"><div class="kg-bookmark-content"><div class="kg-bookmark-title">2Chat integrations | Workflow automation with n8n</div><div class="kg-bookmark-description">Integrate 2Chat with hundreds of other apps. Create sophisticated automations between 2Chat and your stack using n8n. Free and source-available.</div><div class="kg-bookmark-metadata"><span class="kg-bookmark-author">n8n.io</span><span class="kg-bookmark-publisher">igordisco</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://n8n.io/n8n-og-image.png" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat"></div></a></figure><h2 id="step-1-create-a-new-workflow">Step 1: Create a New Workflow</h2><p>To get started, create a new workflow in n8n. This will serve as the foundation for your chatbot service.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="1290" height="206" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/05/image.png 1000w, https://blog.2chat.co/content/images/2025/05/image.png 1290w" sizes="(min-width: 720px) 720px"></figure><h2 id="step-2-import-the-flow-template">Step 2: Import the Flow Template</h2><p>To make things easier, import the <a href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/2Chat_Chatbot.json">n8n flow template</a> provided by 2Chat. You can find this file in the related blog post or video description. The flow template consists of two main parts: one for importing the knowledge base and the other for the chatbot itself.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/2ChatCo/Tutorials/blob/main/n8n/2Chat_Chatbot.json"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Tutorials/n8n/2Chat_Chatbot.json at main &#xB7; 2ChatCo/Tutorials</div><div class="kg-bookmark-description">Contribute to 2ChatCo/Tutorials development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">2ChatCo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/64e411be647fb25ec1f425e8707672e766cebedbd28af7e727dc42819fdfacbb/2ChatCo/Tutorials" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat"></div></a></figure><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/05/image-1.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="623" height="505" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-1.png 600w, https://blog.2chat.co/content/images/2025/05/image-1.png 623w"></figure><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-2.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="850" height="719" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-2.png 600w, https://blog.2chat.co/content/images/2025/05/image-2.png 850w" sizes="(min-width: 720px) 720px"></figure><h2 id="step-3-configure-the-knowledge-base">Step 3: Configure the Knowledge Base</h2><p>We&#x2019;ll use a form submission to provide the knowledge base for our chatbot. This is perhaps the easiest way to input the necessary information.</p><p>Configure the credentials for every OpenAI task. In the embedding task, select the desired model. For this example, we&#x2019;ll use the small model.</p><p>The knowledge base will be stored using the flow&#x2019;s memory, with the word &#x201C;knowledgebase&#x201D; as the memory key. The template also includes a default data loader, which will load the data from the form submission into the vector database. The data file will contain the text sent from the form submission task.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-3.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="1205" height="427" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-3.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/05/image-3.png 1000w, https://blog.2chat.co/content/images/2025/05/image-3.png 1205w" sizes="(min-width: 720px) 720px"></figure><p>The text splitter divides the text into chunks that the AI will use later. In this case, we&#x2019;ll use 1,000 characters with a 100-character overlap.</p><h2 id="step-4-load-the-data">Step 4: Load the Data</h2><p>Now, let&#x2019;s load the data into our chatbot. First, disable the webhook trigger and enable the form submission component. Click on &#x201C;Execute Workflow&#x201D; to display the form used to input the text that the chatbot will utilize as its knowledge base.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-6.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="585" height="145"></figure><p>Paste your text into the form and click on &#x201C;Submit.&#x201D; You&#x2019;ll see the flow processing your knowledge base. Once the process is complete, you can close the form and proceed to the AI chatbot section.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-5.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="870" height="585" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-5.png 600w, https://blog.2chat.co/content/images/2025/05/image-5.png 870w" sizes="(min-width: 720px) 720px"></figure><h2 id="step-5-configure-the-ai-chatbot">Step 5: Configure the AI Chatbot</h2><p>Ensure that the form submission is disabled and the webhook is enabled. The webhook displays the URL that we&#x2019;ll use from the 2Chat flow. In this example, we&#x2019;ve used 2chat as the path, but you can choose a shorter word that better describes your web service.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-7.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="1111" height="678" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-7.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/05/image-7.png 1000w, https://blog.2chat.co/content/images/2025/05/image-7.png 1111w" sizes="(min-width: 720px) 720px"></figure><p>In the &#x201C;Respond&#x201D; field, select &#x201C;Using Respond to Webhook Node.&#x201D; Now, let&#x2019;s take a look at our AI agent. </p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-8.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="495" height="654"></figure><p>It&#x2019;s configured as a conversational agent, with the text field associated with the message field in the webhook request. The system prompt instructs the AI agent on its behavior and how to respond to user inquiries. Feel free to modify the base text as needed.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-9.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="460" height="718"></figure><h2 id="step-6-connect-the-openai-model-and-configure-memory">Step 6: Connect the OpenAI Model and Configure Memory</h2><p>Connect the OpenAI model to the agent. To enable the agent to maintain a conversation, we&#x2019;ll use the window buffer memory. In this example, we&#x2019;ll use the phone number as the session ID and set a context window of five. This determines the amount of chat history the agent will retain for subsequent questions.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-10.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="526" height="418"></figure><h2 id="step-7-add-a-tool-for-the-agent">Step 7: Add a Tool for the Agent</h2><p>Next, we&#x2019;ll add a tool for the agent. In this case, it will be the vector store. The limit in our vector store ensures that only the relevant chunks of the knowledge base are returned, aiding the AI in answering user questions.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-11.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="466" height="365"></figure><p>Connect the in-memory vector store and utilize the knowledge base loaded at the beginning. Ensure that the memory key is identical to the one used to load the text. Configure the AI embeddings using the same model employed to load the data, and configure the LLM.</p><h2 id="step-8-activate-your-n8n-flow">Step 8: Activate your n8n flow</h2><p>Activate the n8n flow before the following steps</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/06/image-9.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="870" height="177" srcset="https://blog.2chat.co/content/images/size/w600/2025/06/image-9.png 600w, https://blog.2chat.co/content/images/2025/06/image-9.png 870w" sizes="(min-width: 720px) 720px"></figure><h2 id="step-8-configure-the-webhook-and-test-the-chatbot">Step 8: Configure the Webhook and Test the Chatbot</h2><p>The &#x201C;Respond to Webhook&#x201D; node has the JSON structure that will be used in 2Chat. After saving and enabling the workflow, you&#x2019;re ready to test your chatbot.</p><p>Open the webhook component and copy the production URL. In <a href="https://2chat.co/">2Chat</a>, create a flow with the following configuration:</p><p>Configure the flow trigger by selecting the phone number and using &#x201C;Message Received&#x201D; as the event.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-15.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="879" height="420" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-15.png 600w, https://blog.2chat.co/content/images/2025/05/image-15.png 879w" sizes="(min-width: 720px) 720px"></figure><p>Add an HTTP component and paste the <strong>production URL</strong> copied from n8n.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-16.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="951" height="819" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-16.png 600w, https://blog.2chat.co/content/images/2025/05/image-16.png 951w" sizes="(min-width: 720px) 720px"></figure><p>For the body, send the following structure and add the last user message and the phone number.</p><!--kg-card-begin: markdown--><pre><code class="language-json">{
    &quot;phonenumber&quot;: &quot;{{wa.phoneNumber}}&quot;,
    &quot;message&quot;: &quot;{{message}}&quot;
}
</code></pre>
<!--kg-card-end: markdown--><p>As a response, try the created webhook in n8n. This will return the AI-generated text in a variable called &#x201C;answer.&#x201D;</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/05/image-17.png" class="kg-image" alt="Transform Your Knowledge into a WhatsApp Chatbot: A Guide Using n8n and 2Chat" loading="lazy" width="1017" height="358" srcset="https://blog.2chat.co/content/images/size/w600/2025/05/image-17.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/05/image-17.png 1000w, https://blog.2chat.co/content/images/2025/05/image-17.png 1017w" sizes="(min-width: 720px) 720px"></figure><p>In the final component, &#x201C;Message and Wait for Reply,&#x201D; incorporate the answer variable. Ensure that this component is connected to the green port on the HTTP component and link the flow component back to the HTTP to establish the conversation loop.</p>]]></content:encoded></item><item><title><![CDATA[After-Hours Lead Capture: Automate WhatsApp with Google Sheets Integration]]></title><description><![CDATA[Capture after-hours WhatsApp leads 24/7. Learn how to automate your workflow with Google Sheets, 2Chat, and Make integration. Stop losing sales when offline! ]]></description><link>https://blog.2chat.co/whatsapp-automation-capture-leads-effortlessly-after-hours/</link><guid isPermaLink="false">67f72d172844af92b4240337</guid><category><![CDATA[automation]]></category><category><![CDATA[flow.builder]]></category><category><![CDATA[Google Sheets]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Wed, 23 Apr 2025 03:31:10 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/04/2Chat-After-Hours-Google-Sheets.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/04/2Chat-After-Hours-Google-Sheets.png" alt="After-Hours Lead Capture: Automate WhatsApp with Google Sheets Integration"><p>Imagine never missing an opportunity to engage with a potential customer, even when your business is closed for the day. In today&apos;s competitive landscape, capturing leads efficiently is vital for sustained growth. This is where WhatsApp automation steps in, offering a powerful solution to keep your lead generation active around the clock. You can automate your lead capture processes seamlessly by leveraging tools like WhatsApp, Make, Google Sheets, and 2Chat. In this blog post, we&apos;ll delve into how this combination can help you capture leads effortlessly after hours, ensuring your business remains connected and always responsive.</p><p>You will need this:</p><ul><li><a href="https://2chat.co/">2Chat Account</a> with a phone number connected</li><li>Copy this <a href="https://docs.google.com/spreadsheets/d/1O5Fwi4TMMmkTm8Macm-j25TzOyd12bK1p0FW8iELJAE/edit?usp=sharing">Google Sheets Template</a></li><li><a href="https://make.com/">Make account</a> to copy <a href="www.make.com/en/integration/14010-create-a-new-lead-in-google-sheets-from-a-whatsapp-conversation-using-2chat?templatePublicId=14010">this template</a></li></ul><p>This guide (and the accompanying video) shows you exactly how to set up an automation using <strong>WhatsApp</strong>, <strong>Google Sheets</strong>, <strong>2Chat</strong>, and <strong>Make (formerly Integromat)</strong> to capture those valuable after-hours leads effortlessly.</p><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/ze5LehYjz74?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="WhatsApp &amp; Google Sheets: Automate After-Hours Leads #whatsapp #leadgeneration"></iframe></figure><h3 id="step-1-prepare-your-google-sheet">Step 1: Prepare Your Google Sheet</h3><ul><li>First, grab the <a href="https://docs.google.com/spreadsheets/d/1O5Fwi4TMMmkTm8Macm-j25TzOyd12bK1p0FW8iELJAE/edit?usp=sharing">Google Sheet template</a> designed for this automation.</li><li>Go to File &gt; Make a copy in Google Sheets to save your editable version to your Google Drive. This sheet has columns ready for Name, Message, PhoneNumber, Email, and DateTime.</li></ul><h3 id="step-2-set-up-the-make-scenario">Step 2: Set Up the Make Scenario</h3><ul><li>Use the provided <a href="www.make.com/en/integration/14010-create-a-new-lead-in-google-sheets-from-a-whatsapp-conversation-using-2chat?templatePublicId=14010">Make scenario template</a>. This template already has the basic structure: a <strong>Webhook</strong> module to receive data and a <strong>Google Sheets</strong> module to add a row.</li></ul><p><strong>Create a Webhook:</strong> In the Make scenario setup, create a new webhook. Make will generate a unique URL. <strong>Copy this URL</strong> &#x2013; you&apos;ll need it in 2Chat.</p><p><strong>Connect Google Sheets:</strong> Configure the Google Sheets module. Connect your Google account, select &quot;Search by path&quot; for the Search Method, choose your Drive, and then search for and select the Google Sheet you copied in Step 1. Ensure the correct sheet within the spreadsheet (e.g., &quot;Lead capture&quot;) is selected.</p><p><strong>Save and Edit:</strong> Save the initial setup. You might need to click &quot;Edit scenario&quot; to easily access the webhook URL again later.</p><h3 id="step-3-create-the-2chat-flow">Step 3: Create the 2Chat Flow</h3><ul><li>Log in to your 2Chat account and navigate to Flows.</li><li>Click + New Flow and select the <strong>&quot;Business Hours&quot;</strong> template. This provides a starting point with a condition to check if a message arrives inside or outside your set hours.</li></ul><p><strong>Configure Trigger &amp; Hours:</strong></p><ul><li>Select your WhatsApp Business Channel as the Source in the initial trigger node.</li><li>Click the Condition node. Adjust the days and times to match your actual business hours. The flow branch we&apos;ll build on triggers when the condition is True (i.e., outside business hours).</li></ul><p><strong>Edit Initial Message:</strong> Modify the first message sent on the &quot;outside hours&quot; path. Let the customer know you&apos;re currently unavailable but will collect their details. Example: &quot;Hello, thank you for your message. Our business hours are [Your Hours]. Please give us some information, and we will get in touch with you as soon as possible.&quot;</p><h3 id="step-4-capture-lead-information-in-2chat">Step 4: Capture Lead Information in 2Chat</h3><ul><li>Add <strong>&quot;Message and Wait for Reply&quot;</strong> components to your 2Chat flow after the initial &quot;outside hours&quot; message.</li><li><strong>Ask for Name:</strong> Add a node asking, &quot;Please tell us your name.&quot; Save the reply as a <strong>Text</strong> custom field named name.</li><li><strong>Ask for Email:</strong> Add another node asking, &quot;What&apos;s your email?&quot;. Save the reply as an <strong>Email</strong> custom field named email (using the Email type helps validate the format).</li><li><strong>Ask for Inquiry:</strong> Add a third node asking, &quot;How can we help you?&quot;. Save the reply as a <strong>Text</strong> custom field named message.</li></ul><p><strong>Step 5: Send Data to Google Sheets (via Make)</strong></p><ul><li>Add an <strong>&quot;HTTP Request&quot;</strong> component after the last &quot;Message and Wait for Reply&quot; node.</li></ul><p><strong>Configure the Request:</strong></p><ul><li><strong>Request URL:</strong> Paste the <strong>Make webhook URL</strong> you copied in Step 2.</li><li><strong>Method:</strong> Ensure this is set to <strong>POST</strong>.</li></ul><p><strong>Body:</strong> Go to the Body tab. You need to send the data in JSON format. Use the following structure, replacing the placeholders with the actual dynamic variables from 2Chat (use the {} variable picker):</p><!--kg-card-begin: markdown--><pre><code class="language-json">{
    &quot;Name&quot;: &quot;NAME&quot;,
    &quot;Message&quot;: &quot;MESSAGE&quot;,
    &quot;PhoneNumber&quot;: &quot;PHONE_NUMBER&quot;,
    &quot;email&quot;: &quot;EMAIL&quot;,
    &quot;DateTime&quot;: &quot;&quot;
}
</code></pre>
<!--kg-card-end: markdown--><h3 id="step-6-add-a-confirmation-message-recommended">Step 6: Add a Confirmation Message (Recommended)</h3><ul><li>To improve the user experience, add a final <strong>&quot;Send WhatsApp Message&quot;</strong> component connected to the Successful output of the HTTP Request node.</li><li>Compose a message confirming receipt: &quot;Thank you, we&apos;ve received your information. One of our agents will contact you as soon as possible.&quot;</li></ul><h3 id="step-7-save-publish-and-test">Step 7: Save, Publish, and Test!</h3><ul><li>Click Save Changes in your 2Chat flow.</li><li>Click the dropdown next to Draft Flow and select Publish.</li><li>Send a message to your WhatsApp number <em>outside</em> your configured business hours. Follow the prompts from your automation.</li><li>Check your Google Sheet &#x2013; the new lead information should appear instantly!</li></ul><p><strong>Why This Automation Rocks:</strong></p><ul><li><strong>Never Lose a Lead:</strong> Capture inquiries 24/7, even while you sleep.</li><li><strong>Improve Customer Experience:</strong> Acknowledge customers immediately, even off-hours.</li><li><strong>Increase Efficiency:</strong> Data is automatically organized in your Google Sheet, ready for follow-up.</li><li><strong>Boost Sales:</strong> More captured leads mean more opportunities to convert.</li></ul><p>Stop letting valuable after-hours leads slip away. Implement this simple automation today and ensure your business is always ready to capture the next opportunity.</p><blockquote class="kg-blockquote-alt">Ready to get started? Visit <a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2F2chat.co%2F">2Chat.co</a> to learn more!</blockquote>]]></content:encoded></item><item><title><![CDATA[Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly]]></title><description><![CDATA[Learn to forward WhatsApp messages to email for better productivity and customer service. Monitor product questions, trigger emails for critical complaints, and send order updates easily.]]></description><link>https://blog.2chat.co/streamline-your-communications-how-to-forward-whatsapp-messages-to-email-seamlessly/</link><guid isPermaLink="false">67e607a52844af92b42401c3</guid><category><![CDATA[automation]]></category><category><![CDATA[email]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Fri, 28 Mar 2025 04:28:10 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/03/2Chat-Forward-Email.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/03/2Chat-Forward-Email.png" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly"><p>You can forward WhatsApp conversations to your email in various strategic scenarios, such as monitoring product-specific questions or triggering emails when critical complaint keywords are detected. This approach allows you to centralize important communications, ensuring no vital information slips through the cracks. Additionally, you can automate sending specific information to a customer&apos;s email, such as order status updates or responses to help requests, enhancing both efficiency and customer satisfaction. By integrating these practices, you can streamline your communication workflow and provide a more responsive and organized customer service experience.</p><h3 id="how-to-forward-a-whatsapp-message-to-your-inbox">How to forward a Whatsapp message to your inbox</h3><p>You will need this:</p><ul><li><a href="https://2chat.co/">2Chat Account</a> with a phone number connected</li><li><a href="https://sendgrid.com/">A Sendgrid account</a> with <a href="https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/how-to-create-a-eu-regional-subuser-with-the-twilio-sendgrid-api#step-5-send-your-email">access to the API</a> and a verified email</li></ul><h3 id="getting-your-sendgrid-api-key">Getting your SendGrid API key</h3><p>Login to your SendGrid account and follow these steps:</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-8.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="900" height="481" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-8.png 600w, https://blog.2chat.co/content/images/2025/03/image-8.png 900w" sizes="(min-width: 720px) 720px"></figure><ol><li>Go to the <strong>Settings</strong> section on the left navigation bar and choose <strong>API Keys</strong>.</li><li>Click on <strong>Create API Key</strong>.</li><li>Assign a name to your <strong>API key</strong>.</li><li>Choose between <strong>Full Access</strong>, or <strong>Restricted Access</strong> with <strong>Mail Send</strong> permissions.</li><li>Click Create &amp; View.</li><li>Save your API key securely, we will use it later from 2Chat.</li></ol><h3 id="configure-the-whatsapp-flow-automation-in-2chat">Configure the WhatsApp flow automation in 2Chat</h3><p>In this case, we will send the email to our account if a specific word is mentioned, feel free to adapt the same process for your own use case.</p><p>Login to your <a href="https://2chat.co/">2Chat Account</a> and create a new flow. Configure the initial step as <strong>Message Received</strong> and select the phone number as source</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-9.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="1070" height="644" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-9.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/03/image-9.png 1000w, https://blog.2chat.co/content/images/2025/03/image-9.png 1070w" sizes="(min-width: 720px) 720px"></figure><p>Add a <strong>Condition</strong> flow component and link it to the initial step. Configure the condition using <strong>Last Received Message</strong> and if the <strong> Content</strong> contains your keyword, in this case &quot;MyProduct&quot;.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-10.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="1043" height="509" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-10.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/03/image-10.png 1000w, https://blog.2chat.co/content/images/2025/03/image-10.png 1043w" sizes="(min-width: 720px) 720px"></figure><p>Now the critical step, add an <strong>HTTP Request</strong> component, here we will make several configurations. Let&apos;s see this sample CURL request to the SendGrid API taken from the <a href="https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/how-to-create-a-eu-regional-subuser-with-the-twilio-sendgrid-api#step-5-send-your-email">SendGrid documentation</a>.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-11.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="853" height="548" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-11.png 600w, https://blog.2chat.co/content/images/2025/03/image-11.png 853w" sizes="(min-width: 720px) 720px"></figure><p>Select <strong>POST</strong> as request type and <em><strong>https://api.sendgrid.com/v3/mail/send</strong> </em>as the Request URL.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-12.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="970" height="372" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-12.png 600w, https://blog.2chat.co/content/images/2025/03/image-12.png 970w" sizes="(min-width: 720px) 720px"></figure><p>Create two headers:</p><ul><li>Authorization = Bearer &lt;&lt;REPLACE SENDGRID API KEY&gt;&gt;</li><li>Content-Type = application/json</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-13.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="980" height="450" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-13.png 600w, https://blog.2chat.co/content/images/2025/03/image-13.png 980w" sizes="(min-width: 720px) 720px"></figure><p>Now for the body you can use this template code:</p><!--kg-card-begin: markdown--><pre><code class="language-json">{
  &quot;personalizations&quot;: [
    {
      &quot;to&quot;: [
        {
          &quot;email&quot;: &quot;&lt;&lt;DESTINATION EMAIL&gt;&gt;&quot;
        }
      ]
    }
  ],
  &quot;from&quot;: {
    &quot;email&quot;: &quot;&lt;&lt;SOURCE EMAIL ENABLED IN SENDGRID&gt;&gt;&quot;
  },
  &quot;subject&quot;: &quot;2Chat email verification code&quot;,
  &quot;content&quot;: [
    {
      &quot;type&quot;: &quot;text/plain&quot;,
      &quot;value&quot;: &quot;Mesagge received from 
{{wa.phoneNumber}}
:  
{{message}}
&quot;
    }
  ]
}
</code></pre>
<!--kg-card-end: markdown--><p>This will send a plain text message similar to this, because of this line <em>&quot;type&quot;: &quot;text/plain&quot;,</em></p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-14.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="582" height="192"></figure><p>You can send an HTML email to improve formatting:</p><!--kg-card-begin: markdown--><pre><code class="language-json">{
  &quot;personalizations&quot;: [
    {
      &quot;to&quot;: [
        {
          &quot;email&quot;: &quot;&lt;&lt;DESTINATION EMAIL&gt;&gt;&quot;
        }
      ]
    }
  ],
  &quot;from&quot;: {
    &quot;email&quot;: &quot;&lt;&lt;SOURCE EMAIL ENABLED IN SENDGRID&gt;&gt;&quot;
  },
  &quot;subject&quot;: &quot;2Chat email verification code&quot;,
  &quot;content&quot;: [
    {
      &quot;type&quot;: &quot;text/html&quot;,
      &quot;&lt;b&gt;Mesagge received from {{wa.phoneNumber}}:&lt;/b&gt;&lt;br/&gt; &lt;br/&gt; 
      {{message}}&quot;
    }
  ]
}
</code></pre>
<!--kg-card-end: markdown--><p>Here we changed these lines and we can now send email</p><pre><code>  &quot;type&quot;: &quot;text/html&quot;,
  &quot;&lt;b&gt;Mesagge received from {{wa.phoneNumber}}:&lt;/b&gt;&lt;br/&gt; &lt;br/&gt; 
  {{message}}&quot;
</code></pre><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-15.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="623" height="164" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-15.png 600w, https://blog.2chat.co/content/images/2025/03/image-15.png 623w"></figure><p>This method will allow you to integrate sending emails in any step of your flow but if you want to enable this same email forward case without any coding, you can us this Make template:</p><figure class="kg-card kg-image-card"><a href="https://www.make.com/en/integration/13954-use-2chat-to-forward-a-message-with-a-keyword-to-your-email?templatePublicId=13954"><img src="https://blog.2chat.co/content/images/2025/03/image-16.png" class="kg-image" alt="Boost Business Efficiency: How to Forward WhatsApp Messages to Email Seamlessly" loading="lazy" width="1312" height="585" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-16.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/03/image-16.png 1000w, https://blog.2chat.co/content/images/2025/03/image-16.png 1312w" sizes="(min-width: 720px) 720px"></a></figure><div class="kg-card kg-button-card kg-align-center"><a href="https://www.make.com/en/integration/13954-use-2chat-to-forward-a-message-with-a-keyword-to-your-email?templatePublicId=13954" class="kg-btn kg-btn-accent">Get Make Template</a></div>]]></content:encoded></item><item><title><![CDATA[E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease]]></title><description><![CDATA[Discover how to seamlessly export your WhatsApp catalog to Shopify using Make and 2Chat. This step-by-step guide helps you automate product transfers, saving time and ensuring accuracy. Ideal for small businesses, e-commerce managers, and drop shippers. ]]></description><link>https://blog.2chat.co/e-commerce-automation-transfer-whatsapp-catalog-to-shopify-with-ease/</link><guid isPermaLink="false">67ca62912844af92b42400a6</guid><category><![CDATA[automation]]></category><category><![CDATA[Shopify]]></category><category><![CDATA[whatsapp]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Thu, 13 Mar 2025 03:33:51 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/03/2Chat-WhatsApp-Catalot-Shopify.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/03/2Chat-WhatsApp-Catalot-Shopify.png" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease"><p>For any business, efficiency is key, which is why some e-commerce companies integrate WhatsApp into their sales and customer service channels. If you have WhatsApp Business, you can create a product or service catalog to share with your customers easily. However, if you want to boost your business with a Shopify store, manually transferring product data from one platform to another can be time-consuming and error-prone. Fortunately, with the help of automation tools like Make (formerly Integromat), you can seamlessly export your WhatsApp catalog to Shopify in just a few steps. Here&apos;s a step-by-step guide to help you get started using 2Chat API.</p><h3 id="what-you-will-need">What You Will Need</h3><ul><li><a href="https://2chat.co/">2Chat account</a> with the phone number where the catalog is enabled</li><li><a href="https://www.make.com/">Make</a> account</li><li><a href="https://www.shopify.com/">Shopify</a> Account</li><li><a href="https://www.make.com/en/integration/13895-2chat-export-whatsapp-catalog-to-shopify-api?templatePublicId=13895">2Chat export WhatsApp Catalog to Shopify API Template</a></li></ul><blockquote>Before you carry out these steps, <strong>ensure that you are logged</strong> into your 2Chat, Make, and Shopify accounts.</blockquote><h3 id="learn-how-to-export-whatsapp-catalog-to-shopify">Learn how to export WhatsApp Catalog to Shopify</h3><figure class="kg-card kg-embed-card"><iframe width="200" height="113" src="https://www.youtube.com/embed/DY6LIaYMxBs?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="Export WhatsApp Catalog to Shopify using 2Chat API and Make #whatsapp"></iframe></figure><h4 id="step-1-start-the-guided-setup">Step 1: Start the Guided Setup</h4><p>Begin by using the <a href="https://www.make.com/en/integration/13895-2chat-export-whatsapp-catalog-to-shopify-api?templatePublicId=13895">Make template designed to export your WhatsApp catalog to Shopify</a>. Click on &quot;Start guided setup&quot; to initiate the process.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-1.png" class="kg-image" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease" loading="lazy" width="1402" height="803" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-1.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/03/image-1.png 1000w, https://blog.2chat.co/content/images/2025/03/image-1.png 1402w" sizes="(min-width: 720px) 720px"></figure><h4 id="step-2-add-your-phone-number">Step 2: Add Your Phone Number</h4><p>Enter the phone number associated with your WhatsApp catalog. This number should be the one where your catalog is created and managed, and <strong>it must be enabled as a channel inside 2Chat</strong>.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-3.png" class="kg-image" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease" loading="lazy" width="672" height="411" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-3.png 600w, https://blog.2chat.co/content/images/2025/03/image-3.png 672w"></figure><h4 id="step-3-enter-the-2chat-api-key">Step 3: Enter the 2Chat API Key</h4><p>Next, you&apos;ll need to add your 2Chat API key. You can find this key in the 2Chat dashboard. This key is essential for authenticating your requests to the 2Chat API.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://help.2chat.io/en/articles/7830948-where-you-can-find-the-api-key-in-2chat"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Where you can find the API key in 2Chat | 2Chat&#x2019;s Help Center</div><div class="kg-bookmark-description">You can integrate 2Chat with other apps either through our Developer API key. Learn here how to get yours.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://intercom.help/2chat/assets/favicon" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease"><span class="kg-bookmark-author">2Chat&apos;s Help Center</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://downloads.intercomcdn.com/i/o/727537843/7ad6e240f6142c8aa49ea81c/image.png?expires=1741835700&amp;signature=1c439c87cafd29f67c6d25c56f1b0ae07008f10b572c83394518cec3d54209bb&amp;req=cyIgE8p5lYVcFb4f3HP0gLNf3rXkFKRw8kiNxrTR%2BhAGs9IPCywpTwBRl5tx%0AcOW3pS7lpoe%2FpxtYXw%3D%3D%0A" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease"></div></a></figure><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-4.png" class="kg-image" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease" loading="lazy" width="660" height="457" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-4.png 600w, https://blog.2chat.co/content/images/2025/03/image-4.png 660w"></figure><h4 id="step-4-define-the-json-structure">Step 4: Define the JSON Structure</h4><p>In this step, you&apos;ll add the JSON structure that the 2Chat API will return. Visit the URL provided in the help text to get the JSON from the 2Chat developer site. Copy the entire response sample text.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://developers.2chat.co/docs/API/WhatsApp/catalog/list-products"><div class="kg-bookmark-content"><div class="kg-bookmark-title">List all products in a catalog &#x2014; 2Chat API for Developers</div><div class="kg-bookmark-description">This endpoint will return a list of products a given WhatsApp Business number has published on their account.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://developers.2chat.co/img/favicon.png" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease"><span class="kg-bookmark-author">Developers</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://developers.2chat.co/img/2chat-logo.png" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease"></div></a></figure><ul><li><strong>Create a New Structure:</strong> Enter a name for the structure to differentiate it.</li><li><strong>Generate the Structure:</strong> Paste the sample response you copied and click on &quot;Generate.&quot; Make will create the necessary structure to process the following steps.</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/03/image-5.png" class="kg-image" alt="E-commerce Automation: Transfer WhatsApp Catalog to Shopify with Ease" loading="lazy" width="1257" height="421" srcset="https://blog.2chat.co/content/images/size/w600/2025/03/image-5.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/03/image-5.png 1000w, https://blog.2chat.co/content/images/2025/03/image-5.png 1257w" sizes="(min-width: 720px) 720px"></figure><h4 id="step-5-create-a-shopify-connection">Step 5: Create a Shopify Connection</h4><p>To connect your Shopify account, it&apos;s easier if you&apos;re already logged into Shopify in another window. Enter the starting characters of your Shopify subdomain and click on &quot;Save.&quot; Allow Make to be installed in your Shopify account by clicking &quot;Continue.&quot;</p><h4 id="step-6-select-the-shopify-connection">Step 6: Select the Shopify Connection</h4><p>For the final step, select the Shopify connection you created earlier. This will link your WhatsApp catalog to your Shopify store.</p><h4 id="step-7-execute-the-scenario">Step 7: Execute the Scenario</h4><p>Click on the &quot;Run once&quot; button to execute the scenario. The first step will use 2Chat to retrieve all the catalog items from the phone number you added. Make will loop through all the products and add them to your Shopify account, including product images.</p><h4 id="step-8-verify-and-edit-if-needed">Step 8: Verify and edit (if needed)</h4><p>You can monitor the process in your Shopify account as each product is added. If you need any specific configurations, you can edit the Make scenario accordingly.</p><h3 id="conclusion">Conclusion</h3><p>With these simple steps, you can effortlessly import your entire WhatsApp catalog to your Shopify account, avoiding the hassle of manual data entry. This automation not only saves time but also ensures accuracy, allowing you to focus on growing your business.</p><blockquote class="kg-blockquote-alt">Ready to try 2Chat? Create your trial account Now</blockquote><div class="kg-card kg-button-card kg-align-center"><a href="https://app.2chat.io/login" class="kg-btn kg-btn-accent">Create 2Chat Account</a></div>]]></content:encoded></item><item><title><![CDATA[WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation]]></title><description><![CDATA[AI chatbots enhance customer interactions and streamline operations. Create a robust chatbot for WhatsApp using OpenAI Assistant, Google Sheets, and 2Chat. The chatbot handles queries, pausing when human agents intervene. It combines AI with personal support to boost sales and satisfaction.]]></description><link>https://blog.2chat.co/whatsapp-chatbot-combining-openai-assistant-with-google-sheets-and-human-participation/</link><guid isPermaLink="false">67b69e1e2844af92b423ffa3</guid><category><![CDATA[automation]]></category><category><![CDATA[AI]]></category><category><![CDATA[Google Sheets]]></category><category><![CDATA[Make]]></category><dc:creator><![CDATA[2Chat]]></dc:creator><pubDate>Fri, 21 Feb 2025 03:23:07 GMT</pubDate><media:content url="https://blog.2chat.co/content/images/2025/02/2Chat-ChatGPT-Make-kill-switch-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.2chat.co/content/images/2025/02/2Chat-ChatGPT-Make-kill-switch-1.png" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation"><p>AI chatbots have become indispensable tools for enhancing customer interactions and streamlining business operations. You can create a robust and versatile chatbot that integrates seamlessly with WhatsApp by leveraging powerful technologies like OpenAI Assistant, Google Sheets, and 2Chat. </p><p>However, sometimes your AI chatbot can&apos;t answer all the questions, or your agents must actively participate in a WhatsApp conversation to close a sale or assist a troubled customer. This chatbot will respond to every customer query, but if one of your agents sends a message, the AI will pause until the agent leaves the chat. This approach can enhance your sales and customer support processes by combining the capabilities of an OpenAI Assistant with the personal touch of a human agent.</p><h3 id="creating-a-chatbot-with-make">Creating a chatbot with Make</h3><p>You will need:</p><ul><li><a href="https://2chat.co/">2Chat account</a></li><li><a href="https://www.make.com/en">Make account</a></li><li><a href="https://platform.openai.com/">OpenAI platform</a> API</li><li>Google Sheets account to copy <a href="https://docs.google.com/spreadsheets/d/13Iy1rwW0hZM0TxSQ4UXO1e3jCD4VysuL6W_zRxwDPzo/edit?usp=sharing">this file</a></li><li>Download this Make Blueprint from <a href="https://github.com/2ChatCo/Tutorials/blob/main/openai/2Chat-OpenAi-Assistant-blueprint.json">this link</a></li></ul><p>First, enter your Make account and create a new scenario. You can import the blueprint using this option:</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/02/image-1.png" class="kg-image" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation" loading="lazy" width="292" height="185"></figure><p>After importing the blueprint you will get this scenario:</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://blog.2chat.co/content/images/2025/02/image.png" class="kg-image" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation" loading="lazy" width="1346" height="691" srcset="https://blog.2chat.co/content/images/size/w600/2025/02/image.png 600w, https://blog.2chat.co/content/images/size/w1000/2025/02/image.png 1000w, https://blog.2chat.co/content/images/2025/02/image.png 1346w" sizes="(min-width: 1200px) 1200px"></figure><p>You must use your 2Chat API Key, enable the connection, and assign it to the 2Chat components.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://help.2chat.io/en/articles/7830948-where-you-can-find-the-api-key-in-2chat"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Where you can find the API key in 2Chat | 2Chat&#x2019;s Help Center</div><div class="kg-bookmark-description">You can integrate 2Chat with other apps either through our Developer API key. Learn here how to get yours.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://intercom.help/2chat/assets/favicon" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation"><span class="kg-bookmark-author">2Chat&apos;s Help Center</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://downloads.intercomcdn.com/i/o/727537843/7ad6e240f6142c8aa49ea81c/image.png?expires=1740026700&amp;signature=0d19bdf2683e22cbfb2841b49d29d43cf70ff79f3d12f3f0e706687bd7c4c666&amp;req=cyIgE8p5lYVcFb4f3HP0gLNf373lF6Rw8kiNxrTR%2BhBZ4GUBTSdq5dkbpXbz%0AnTjof83CyO8Z5wT9lA%3D%3D%0A" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation"></div></a></figure><p>Now for Google Sheets copying <a href="https://docs.google.com/spreadsheets/d/13Iy1rwW0hZM0TxSQ4UXO1e3jCD4VysuL6W_zRxwDPzo/edit?usp=sharing">this file</a>, you will get this, and you must configure this connection in every Google Sheets component.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/02/image-2.png" class="kg-image" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation" loading="lazy" width="391" height="128"></figure><p>Please verify that the correct Google Sheets file is selected in each component</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/02/image-3.png" class="kg-image" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation" loading="lazy" width="442" height="868"></figure><p>You must configure your OpenAI Assistant adding the knowledge and configuring the Assistant.</p><figure class="kg-card kg-image-card"><img src="https://blog.2chat.co/content/images/2025/02/image-4.png" class="kg-image" alt="WhatsApp Chatbot Combining OpenAI Assistant with Google Sheets and Human Participation" loading="lazy" width="439" height="702"></figure><p>Once this Make scenario is enabled, every new chat will be handled by an AI Assistant. However, when a human agent sends a message using 2Chat, the AI will pause. To re-enable the AI after the human agent leaves the chat, send a message containing three exclamation marks (!!!).</p>]]></content:encoded></item></channel></rss>