Update blogs.js
Browse files
blogs.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
| 1 |
-
//
|
|
|
|
|
|
|
| 2 |
const posts = [
|
| 3 |
{
|
| 4 |
-
title: "
|
| 5 |
-
date: "
|
| 6 |
-
category: "
|
| 7 |
-
excerpt: "
|
| 8 |
-
url: "https://www.
|
| 9 |
-
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data/
|
| 10 |
},
|
| 11 |
{
|
| 12 |
-
title: "
|
| 13 |
-
date: "
|
| 14 |
-
category: "
|
| 15 |
-
excerpt: "
|
| 16 |
-
url: "https://www.
|
| 17 |
-
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data/
|
| 18 |
},
|
| 19 |
{
|
| 20 |
-
title: "
|
| 21 |
-
date: "
|
| 22 |
-
category: "
|
| 23 |
-
excerpt: "
|
| 24 |
-
url: "https://www.
|
| 25 |
-
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data/
|
| 26 |
},
|
| 27 |
{
|
| 28 |
-
title: "
|
| 29 |
-
date: "
|
| 30 |
-
category: "
|
| 31 |
-
excerpt: "
|
| 32 |
-
url: "https://www.
|
| 33 |
-
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data/
|
| 34 |
},
|
| 35 |
{
|
| 36 |
-
title: "
|
| 37 |
-
date: "
|
| 38 |
-
category: "
|
| 39 |
-
excerpt: "
|
| 40 |
-
url: "https://www.
|
| 41 |
-
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data/
|
| 42 |
},
|
| 43 |
{
|
| 44 |
-
title: "
|
| 45 |
-
date: "
|
| 46 |
-
category: "
|
| 47 |
-
excerpt: "AI
|
| 48 |
-
url: "https://www.
|
| 49 |
-
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
];
|
| 52 |
|
| 53 |
-
const categoryLabels = {
|
| 54 |
-
"产品方案": "Product Solutions",
|
| 55 |
-
"功能更新": "Feature Updates",
|
| 56 |
-
"解决方案": "Solutions",
|
| 57 |
-
"深度洞察": "Insights",
|
| 58 |
-
"客户案例": "Customer Stories",
|
| 59 |
-
"操作指引": "Guides",
|
| 60 |
-
"干货分享": "Practical Insights"
|
| 61 |
-
};
|
| 62 |
-
|
| 63 |
const ALL_CATEGORY = "__all__";
|
| 64 |
|
| 65 |
const postList = document.querySelector("[data-post-list]");
|
|
@@ -72,9 +72,13 @@ const formatDate = (date) => new Intl.DateTimeFormat("en-US", {
|
|
| 72 |
day: "numeric"
|
| 73 |
}).format(new Date(`${date}T00:00:00`));
|
| 74 |
|
| 75 |
-
const categoryLabel = (category) =>
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
function renderCategories(activeCategory = ALL_CATEGORY) {
|
| 80 |
categoryList.innerHTML = categories
|
|
|
|
| 1 |
+
// Add a new article by copying an item below and updating its title, date,
|
| 2 |
+
// category, excerpt, URL, and cover image. Categories are generated from the
|
| 3 |
+
// article data, so the filter buttons stay in sync as the collection changes.
|
| 4 |
const posts = [
|
| 5 |
{
|
| 6 |
+
title: "30 Actionable WhatsApp Tips for 2025: Boost Your Strategy Today",
|
| 7 |
+
date: "2025-11-01",
|
| 8 |
+
category: "Daily Tips",
|
| 9 |
+
excerpt: "A practical collection of WhatsApp features, privacy settings, media workflows, and productivity tips for global e-commerce teams.",
|
| 10 |
+
url: "https://www.3chat.ai/blog/2025-whatsapp",
|
| 11 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/80692a7e5897a95835b937cd97b54b67e33e9a3c-1024x576.avif"
|
| 12 |
},
|
| 13 |
{
|
| 14 |
+
title: "Omnichannel Setup: Integrating 3Chat.ai with WhatsApp",
|
| 15 |
+
date: "2025-10-13",
|
| 16 |
+
category: "How-to Guides",
|
| 17 |
+
excerpt: "Learn how to connect WhatsApp to 3Chat.ai, manage conversations in one inbox, and prepare your account and network before scanning the QR code.",
|
| 18 |
+
url: "https://www.3chat.ai/blog/omnichannel-3chat-ai-whatsapp",
|
| 19 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/015b228fe8f4434126b9be6f0e4dd907239f30fd-1024x576.avif"
|
| 20 |
},
|
| 21 |
{
|
| 22 |
+
title: "Omnichannel Setup: Integrating 3Chat.ai with Facebook",
|
| 23 |
+
date: "2025-10-13",
|
| 24 |
+
category: "How-to Guides",
|
| 25 |
+
excerpt: "Follow the steps to connect a Facebook Business Account, authorize your Pages, and test Messenger conversations and Page comments in 3Chat.ai.",
|
| 26 |
+
url: "https://www.3chat.ai/blog/3chat-ai-facebook",
|
| 27 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/8cc57484dcbc1343e13ed47f058ad857a890e7e8-1024x576.avif"
|
| 28 |
},
|
| 29 |
{
|
| 30 |
+
title: "Mastering Amazon Precision Operations: Integrating AI for Scalable Success",
|
| 31 |
+
date: "2025-10-11",
|
| 32 |
+
category: "Daily Tips",
|
| 33 |
+
excerpt: "Explore a practical operating system for Amazon sellers, from account health and customer service to reviews, ads, inventory, and AI-assisted growth.",
|
| 34 |
+
url: "https://www.3chat.ai/blog/in-depth-insight-amazon-refined-operation-integration-and-practice-of-ai-customer-service-tools",
|
| 35 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/756ceb7c9829b37a10018bf18cf1d1c0699a6aae-1024x576.webp"
|
| 36 |
},
|
| 37 |
{
|
| 38 |
+
title: "Agentic AI: Game-Changing Tech or Just Marketing Hype?",
|
| 39 |
+
date: "2025-09-12",
|
| 40 |
+
category: "Deep Dives",
|
| 41 |
+
excerpt: "A grounded look at what Agentic AI means, how it differs from traditional automation, and where AI agents are already creating business value.",
|
| 42 |
+
url: "https://www.3chat.ai/blog/agentic-ai",
|
| 43 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/0046169aee56e0f75a720689f4c36ff6264bfbca-1024x576.webp"
|
| 44 |
},
|
| 45 |
{
|
| 46 |
+
title: "E-commerce Growth Secrets: How to Skyrocket Conversions via WhatsApp",
|
| 47 |
+
date: "2025-09-08",
|
| 48 |
+
category: "Daily Tips",
|
| 49 |
+
excerpt: "Understand why WhatsApp matters for cross-border commerce and how AI-powered customer support can turn private conversations into long-term growth.",
|
| 50 |
+
url: "https://www.3chat.ai/blog/whatsapp-independent-site-conversions",
|
| 51 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/6ddfaace52226c39e098318a433beb2a3a8be128-1024x576.avif"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
title: "The Future of Support: How RAG, Agents, and MCP are Reimagining Customer Service",
|
| 55 |
+
date: "2025-08-19",
|
| 56 |
+
category: "Deep Dives",
|
| 57 |
+
excerpt: "A plain-language introduction to RAG, intelligent agents, function calling, and MCP—and how these technologies work together in customer support.",
|
| 58 |
+
url: "https://www.3chat.ai/blog/rag-agent-mcp-transforming-customer-service",
|
| 59 |
+
cover: "https://cdn.sanity.io/images/f1joviv1/3chat-blog-data-intl/cd0875d28a9c5f3c92480eaf6afa27354d8d3991-1024x576.avif"
|
| 60 |
}
|
| 61 |
];
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
const ALL_CATEGORY = "__all__";
|
| 64 |
|
| 65 |
const postList = document.querySelector("[data-post-list]");
|
|
|
|
| 72 |
day: "numeric"
|
| 73 |
}).format(new Date(`${date}T00:00:00`));
|
| 74 |
|
| 75 |
+
const categoryLabel = (category) => category;
|
| 76 |
|
| 77 |
+
// Derive filters from the current posts instead of maintaining a separate list.
|
| 78 |
+
const categories = [
|
| 79 |
+
ALL_CATEGORY,
|
| 80 |
+
...Array.from(new Set(posts.map((post) => post.category))).sort((a, b) => a.localeCompare(b))
|
| 81 |
+
];
|
| 82 |
|
| 83 |
function renderCategories(activeCategory = ALL_CATEGORY) {
|
| 84 |
categoryList.innerHTML = categories
|