🤖 AI + LINE — สร้างบอทฉลาดด้วย AI

Building Smart LINE Bots with AI — สร้างบอท LINE อัจฉริยะด้วยปัญญาประดิษฐ์

Week 7 · Relative Clauses (that/which/who) · AI-Powered LINE Bots

🎯 AI LINE Bot คืออะไร?
What is an AI-Powered LINE Bot?

🇹🇭 ภาษาไทย

AI LINE Bot คือบอทบน LINE ที่ใช้ปัญญาประดิษฐ์ (AI) เพื่อเข้าใจข้อความของผู้ใช้และตอบกลับอย่างชาญฉลาด แทนที่จะตอบตามสคริปต์ที่เขียนไว้ล่วงหน้าเท่านั้น


บอทธรรมดา (Rule-based Bot) ทำได้แค่จับคู่คำแล้วตอบตามที่โปรแกรมไว้ เช่น ถ้าผู้ใช้พิมพ์ "สวัสดี" → ตอบ "สวัสดีครับ"


AI Bot ฉลาดกว่ามาก! มันสามารถ เข้าใจความหมาย ของข้อความ, จำบริบทการสนทนา, และ สร้างคำตอบใหม่ ที่เหมาะสมกับแต่ละสถานการณ์

🇬🇧 English

An AI LINE Bot is a bot on the LINE messaging platform that uses artificial intelligence to understand user messages and respond intelligently, instead of just following pre-written scripts.


A regular (rule-based) bot can only match keywords and respond with pre-programmed answers. For example, if a user types "hello" → reply "hello!"


An AI Bot is much smarter! It can understand the meaning of messages, remember conversation context, and generate new answers that fit each situation.

🌟 Fun Facts — ข้อเท็จจริงน่าสนใจ

  • LINE has over 54 million users in Thailand — that's about 75% of the population! — LINE มีผู้ใช้มากกว่า 54 ล้านคนในไทย!
  • Thailand is LINE's biggest market outside Japan — ไทยเป็นตลาดที่ใหญ่ที่สุดของ LINE นอกญี่ปุ่น
  • AI-powered bots can understand messages that they have never seen before — บอท AI เข้าใจข้อความที่ไม่เคยเห็นมาก่อนได้
  • A single AI LINE bot can handle thousands of conversations at once — บอท AI ตัวเดียวรับมือการสนทนาพร้อมกันหลายพันรายการได้

🇹🇭 ทำไมต้องเรียนสร้าง AI LINE Bot?

  • LINE เป็นแอปที่คนไทยใช้มากที่สุด
  • ธุรกิจไทยต้องการ LINE bot ที่ฉลาด
  • เรียนรู้ทักษะ AI ที่ใช้ได้จริงในงาน
  • ฝึกภาษาอังกฤษผ่านการเขียนโค้ดและ API

🇬🇧 Why Learn to Build AI LINE Bots?

  • LINE is the most popular app that Thai people use
  • Thai businesses need bots that are smart and responsive
  • Learn practical AI skills that apply to real jobs
  • Practice English through coding and API documentation

🧪 Section Check — ตรวจสอบความเข้าใจ

AI LINE Bot Basics — พื้นฐาน AI LINE Bot

0/3

An AI LINE Bot is a bot ______ uses artificial intelligence to understand messages.

AI LINE Bot คือบอท______ใช้ปัญญาประดิษฐ์เพื่อเข้าใจข้อความ

that
who
whom
✅ "that" — ใช้ "that" เพราะ bot เป็นสิ่งของ (defining clause). "who" ใช้กับคน "whom" ใช้กับคนในตำแหน่ง object

What is the main difference between a rule-based bot and an AI bot?

อะไรคือความแตกต่างหลักระหว่างบอทแบบกฎเกณฑ์กับบอท AI?

AI bots are slower than rule-based bots.
AI bots can understand meaning and generate new answers.
Rule-based bots are smarter than AI bots.
✅ AI bots สามารถเข้าใจความหมายของข้อความและสร้างคำตอบใหม่ได้ ในขณะที่ rule-based bots ทำได้แค่จับคู่คำแล้วตอบตามสคริปต์

LINE, ______ is the most popular messaging app in Thailand, has over 54 million Thai users.

LINE ______เป็นแอปส่งข้อความที่ได้รับความนิยมสูงสุดในไทย มีผู้ใช้ชาวไทยกว่า 54 ล้านคน

that
which
who
✅ "which" — นี่คือ non-defining clause (มี comma ล้อมรอบ) ต้องใช้ "which" ห้ามใช้ "that" ใน non-defining clause!

📚 คำศัพท์สำคัญ
Key Vocabulary

🔗 Webhook
เว็บฮุก / จุดรับข้อมูลอัตโนมัติ
A URL that receives data automatically when an event happens. LINE sends messages to your webhook.
URL ที่รับข้อมูลอัตโนมัติเมื่อเกิดเหตุการณ์ LINE ส่งข้อความไปที่ webhook ของคุณ
🔌 API
เอพีไอ / ช่องทางเชื่อมต่อระบบ
Application Programming Interface — a way for programs to talk to each other. The LINE API lets your bot send and receive messages.
ช่องทางที่โปรแกรมใช้คุยกัน LINE API ให้บอทส่งและรับข้อความ
🤖 Chatbot
แชทบอท / โปรแกรมสนทนาอัตโนมัติ
A program that simulates conversation with users. A LINE chatbot is a bot that lives inside the LINE app.
โปรแกรมที่จำลองการสนทนากับผู้ใช้ แชทบอท LINE อยู่ในแอป LINE
🧠 Natural Language Processing (NLP)
การประมวลผลภาษาธรรมชาติ
AI technology that helps computers understand human language like Thai or English.
เทคโนโลยี AI ที่ช่วยให้คอมพิวเตอร์เข้าใจภาษามนุษย์
🎯 Intent
เจตนา / ความต้องการของผู้ใช้
What the user wants to do. For example, "I want to order food" has an ordering intent.
สิ่งที่ผู้ใช้ต้องการทำ เช่น "อยากสั่งอาหาร" มี intent เป็นการสั่งอาหาร
📋 Entity
เอนทิตี / ข้อมูลสำคัญในประโยค
A specific piece of information in a message, like a name, date, or product. AI extracts entities from user messages.
ข้อมูลเฉพาะในข้อความ เช่น ชื่อ วันที่ สินค้า AI ดึง entity จากข้อความ
💬 Response
การตอบกลับ / คำตอบ
The message that the bot sends back to the user after processing their input.
ข้อความที่บอทส่งกลับให้ผู้ใช้หลังประมวลผล
📊 Training
การฝึก / การสอน AI
The process of teaching AI to understand patterns by giving it example data.
กระบวนการสอน AI ให้เข้าใจรูปแบบโดยให้ข้อมูลตัวอย่าง
🔄 Conversation Flow
ลำดับการสนทนา
The planned path that a conversation follows, from greeting to completing a task.
เส้นทางที่วางแผนไว้สำหรับการสนทนา ตั้งแต่ทักทายจนทำงานเสร็จ
👤 User Experience (UX)
ประสบการณ์ผู้ใช้
How easy and enjoyable it is for people to use your bot. Good UX keeps users happy.
ความง่ายและน่าใช้ของบอท UX ที่ดีทำให้ผู้ใช้พอใจ
🔧 Integration
การเชื่อมต่อระบบ
Connecting different systems together. Integrating AI with LINE means connecting AI to your LINE bot.
การเชื่อมต่อระบบต่างๆ เข้าด้วยกัน เช่น เชื่อม AI เข้ากับ LINE bot
🚀 Deploy
ติดตั้ง / นำขึ้นใช้งานจริง
To make your bot available for real users. Deploying means putting your code on a server so everyone can use it.
ทำให้บอทพร้อมใช้งานจริง คือนำโค้ดขึ้นเซิร์ฟเวอร์ให้ทุกคนใช้ได้

🧪 Section Check — ตรวจสอบความเข้าใจ

LINE Bot Vocabulary — คำศัพท์ LINE Bot

0/3

A webhook is a URL ______ receives data automatically when an event happens.

Webhook คือ URL ______รับข้อมูลอัตโนมัติเมื่อเกิดเหตุการณ์

that
who
whom
✅ "that" — ใช้ "that" สำหรับ defining clause ที่ขยายสิ่งของ (URL) "who" ใช้กับคนเท่านั้น

What does NLP (Natural Language Processing) do?

NLP (การประมวลผลภาษาธรรมชาติ) ทำอะไร?

Helps computers understand human language
Helps computers draw pictures
Helps computers play music
✅ NLP คือเทคโนโลยี AI ที่ช่วยให้คอมพิวเตอร์เข้าใจภาษามนุษย์ เช่น ภาษาไทยหรือภาษาอังกฤษ

An "intent" is what the user ______ to do. A developer ______ builds bots needs to understand user intents.

"Intent" คือสิ่งที่ผู้ใช้______ทำ นักพัฒนา______สร้างบอทต้องเข้าใจ intent ของผู้ใช้

wants ... who
wanting ... which
want ... whom
✅ "wants ... who" — "wants" เพราะ user เป็นเอกพจน์ "who" เพราะ developer เป็นคน (ใช้ who สำหรับ defining clause ที่ขยายคน)

📖 ไวยากรณ์ในบริบท AI LINE Bot
Grammar in Context: Relative Clauses

🔤 Relative Clauses: that / which / who

Relative Clauses (อนุประโยคขยายความ) ใช้เพื่อให้ข้อมูลเพิ่มเติมเกี่ยวกับคำนามในประโยค เชื่อมด้วย that, which, who

who = ใช้กับ คน | which = ใช้กับ สิ่งของ/สัตว์ | that = ใช้ได้ทั้งคนและสิ่งของ


มี 2 ประเภท:

1. Defining (จำกัดความ) — ข้อมูลจำเป็น ถ้าตัดออกความหมายเปลี่ยน (ไม่ใส่ comma)

2. Non-defining (ไม่จำกัดความ) — ข้อมูลเพิ่มเติม ตัดออกได้ความหมายไม่เปลี่ยน (ใส่ comma) ใช้ which/who เท่านั้น ห้ามใช้ that

✅ A chatbot is a program that responds automatically.

แชทบอทคือโปรแกรมที่ตอบกลับอัตโนมัติ (defining — บอกว่าเป็นโปรแกรมแบบไหน)

✅ The AI, which was trained on Thai data, understands Thai.

AI ซึ่งถูกฝึกด้วยข้อมูลไทย เข้าใจภาษาไทย (non-defining — ข้อมูลเพิ่มเติม ใส่ comma)

✅ The developer who built the bot speaks English.

นักพัฒนาที่สร้างบอทพูดภาษาอังกฤษ (defining — who สำหรับคน)

✅ The webhook, which receives all messages, must be secure.

webhook ซึ่งรับข้อความทั้งหมด ต้องปลอดภัย (non-defining)

❌ The AI, that was trained on data, understands Thai.✅ The AI, which was trained on data, understands Thai.

Non-defining clause ห้ามใช้ "that" ต้องใช้ "which" หรือ "who" เท่านั้น

💡 Grammar Tip — เคล็ดลับไวยากรณ์

Thai: ถ้ามี comma (,) ล้อมรอบ → non-defining → ใช้ which/who เท่านั้น (ห้าม that)

English: If there are commas around the clause → non-defining → use which/who only (never "that")

Quick Test: ลองตัดอนุประโยคออก ถ้าประโยคยังสมบูรณ์ = non-defining ถ้าความหมายเปลี่ยน = defining

🇹🇭 ตัวอย่างเพิ่มเติมกับ LINE Bot

  • that: "A bot that uses AI can understand context." (defining)
  • which: "LINE, which is popular in Thailand, supports bots." (non-defining)
  • who: "Users who send messages get instant replies." (defining)
  • which: "The API, which is free, lets you send messages." (non-defining)

🇬🇧 More Examples with LINE Bots

  • that: "A bot that uses AI can understand context." (defining)
  • which: "LINE, which is popular in Thailand, supports bots." (non-defining)
  • who: "Users who send messages get instant replies." (defining)
  • which: "The API, which is free, lets you send messages." (non-defining)

🧪 Section Check — ตรวจสอบความเข้าใจ

Relative Clauses — อนุประโยคขยายความ

0/3

The API, ______ is free to use, lets you send messages through LINE.

API ______ใช้ฟรี ให้คุณส่งข้อความผ่าน LINE

that
which
who
✅ "which" — มี comma ล้อมรอบ = non-defining clause ต้องใช้ "which" (สำหรับสิ่งของ) ห้ามใช้ "that" ใน non-defining clause!

Which sentence uses a relative clause INCORRECTLY?

ประโยคไหนใช้ relative clause ผิด?

A bot that uses AI can understand context.
Users who send messages get instant replies.
The AI, that was trained on data, understands Thai.
✅ "The AI, that was trained..." ผิด! Non-defining clause (มี comma) ห้ามใช้ "that" ต้องเปลี่ยนเป็น "which": "The AI, which was trained on data, understands Thai."

Users ______ send messages to the bot get instant AI-powered replies.

ผู้ใช้______ส่งข้อความไปที่บอทจะได้รับคำตอบจาก AI ทันที

who
which
whom
✅ "who" — Users เป็นคน ใช้ "who" สำหรับ defining clause ที่ขยายคน "which" ใช้กับสิ่งของ "whom" ใช้เมื่อคนนั้นเป็น object

🚀 เริ่มต้นสร้าง AI LINE Bot
Getting Started: Connecting AI to a LINE Bot

🇹🇭 สิ่งที่ต้องเตรียม

  • บัญชี LINE (ที่คุณใช้อยู่แล้ว)
  • บัญชี LINE Developers (สมัครฟรี)
  • ความรู้พื้นฐานเรื่อง API (เรียนในบทนี้)
  • AI service เช่น ChatGPT API หรือ Claude API
  • เซิร์ฟเวอร์สำหรับรัน webhook (เช่น Render, Vercel)

🇬🇧 What You Need

  • A LINE account (which you already have)
  • A LINE Developers account (free to register)
  • Basic knowledge of APIs (covered in this lesson)
  • An AI service such as ChatGPT API or Claude API
  • A server for running your webhook (e.g., Render, Vercel)

1สร้าง LINE Bot Channel — Create a LINE Bot Channel

ไปที่ developers.line.biz แล้วสร้าง Messaging API channel ใหม่ ตั้งชื่อบอทและเลือกรูปโปรไฟล์ คุณจะได้ Channel Access Token ที่ใช้ส่งข้อความ
English: Go to developers.line.biz and create a new Messaging API channel. Name your bot and choose a profile picture. You will get a Channel Access Token that is used to send messages.

2ตั้งค่า Webhook — Set Up Your Webhook

สร้างเซิร์ฟเวอร์ที่รับข้อความจาก LINE เมื่อผู้ใช้ส่งข้อความ LINE จะส่งข้อมูลไปที่ webhook URL ของคุณ
English: Create a server that receives messages from LINE. When a user sends a message, LINE forwards it to your webhook URL.
// Example webhook server (Node.js) // เซิร์ฟเวอร์ webhook ตัวอย่าง const express = require('express'); const app = express(); app.post('/webhook', (req, res) => { // LINE sends messages here const message = req.body.events[0].message.text; console.log('User said:', message); res.sendStatus(200); });

3เชื่อมต่อ AI — Connect AI to Your Bot

เมื่อบอทได้รับข้อความ ส่งข้อความนั้นไปให้ AI ประมวลผล แล้วส่งคำตอบกลับให้ผู้ใช้ นี่คือ "สมอง" ของบอท!
English: When your bot receives a message, send it to the AI for processing, then send the AI's response back to the user. This is the "brain" of the bot!
// Send message to AI and get a response // ส่งข้อความให้ AI แล้วรับคำตอบ async function getAIResponse(userMessage) { const response = await fetch('https://api.openai.com/v1/chat/completions', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify({ model: 'gpt-4', messages: [{ role: 'user', content: userMessage }] }) }); return response.choices[0].message.content; }

4ส่งคำตอบกลับ LINE — Reply to LINE

ใช้ LINE Messaging API เพื่อส่งคำตอบของ AI กลับไปหาผู้ใช้ใน LINE
English: Use the LINE Messaging API to send the AI's answer back to the user in LINE.
// Reply to user via LINE API // ตอบกลับผู้ใช้ผ่าน LINE API async function replyToUser(replyToken, text) { await fetch('https://api.line.me/v2/bot/message/reply', { method: 'POST', headers: { 'Authorization': 'Bearer CHANNEL_ACCESS_TOKEN', 'Content-Type': 'application/json' }, body: JSON.stringify({ replyToken: replyToken, messages: [{ type: 'text', text: text }] }) }); }

5ทดสอบและปรับปรุง — Test and Improve

เพิ่มบอทเป็นเพื่อนใน LINE แล้วลองส่งข้อความ ทดสอบด้วยคำถามหลายๆ แบบ แล้วปรับปรุง prompt ของ AI ให้ดีขึ้น
English: Add the bot as a friend on LINE and try sending messages. Test with different types of questions, then improve the AI prompt to get better responses.

💡 Pro Tip — เคล็ดลับมือโปร

Thai: เขียน system prompt ที่ดีให้ AI เช่น "You are a friendly Thai-English assistant that helps users who have questions about our products." จะทำให้บอทตอบได้ตรงจุดมากขึ้น!

English: Write a good system prompt for the AI, such as "You are a friendly Thai-English assistant that helps users who have questions about our products." This helps the bot give more relevant answers!

🛠️ โปรเจกต์ลงมือทำ
Hands-On Project: AI LINE Bot

🤖

Build a LINE Bot That Uses AI to Answer Questions 🔍 Medium

สร้าง LINE Bot ที่ใช้ AI ตอบคำถาม

เป้าหมาย: สร้าง LINE bot ที่เชื่อมต่อกับ AI เพื่อตอบคำถามของผู้ใช้ได้อย่างชาญฉลาด

บอทของคุณควร:

  • รับข้อความจากผู้ใช้ผ่าน webhook
  • ส่งข้อความไปให้ AI ประมวลผล
  • ตอบกลับผู้ใช้ด้วยคำตอบจาก AI
  • รองรับทั้งภาษาไทยและอังกฤษ

Goal: Build a LINE bot that connects to AI to answer user questions intelligently.

Your bot should:

  • Receive messages from users via a webhook
  • Send messages to AI for processing
  • Reply to users with AI-generated answers
  • Support both Thai and English languages
// Complete AI LINE Bot Example // ตัวอย่าง AI LINE Bot ที่สมบูรณ์ // A bot that uses AI to answer questions // บอทที่ใช้ AI ตอบคำถาม app.post('/webhook', async (req, res) => { const event = req.body.events[0]; const userMessage = event.message.text; // The AI, which processes the message, returns a smart response const aiReply = await getAIResponse(userMessage); // Send the response that AI generated back to the user await replyToUser(event.replyToken, aiReply); res.sendStatus(200); });

⚠️ Remember / จำไว้นะ

Thai: อย่าเผยแพร่ API Key ของคุณ! เก็บไว้ในตัวแปรสภาพแวดล้อม (environment variables) เสมอ

English: Never expose your API keys! Always store them in environment variables. A key that is leaked can be misused by anyone who finds it.

🧪 Section Check — ตรวจสอบความเข้าใจ

Building AI LINE Bots — การสร้าง AI LINE Bot

0/2

A Channel Access Token is a secret key ______ lets your bot send LINE messages.

Channel Access Token คือกุญแจลับ______ให้บอทของคุณส่งข้อความ LINE

that
who
whom
✅ "that" — key เป็นสิ่งของ ใช้ "that" สำหรับ defining clause (ข้อมูลจำเป็น ไม่มี comma)

A key ______ is leaked can be misused by anyone ______ finds it.

กุญแจ______ถูกเปิดเผย อาจถูกใช้ในทางที่ผิดโดยใครก็ตาม______พบมัน

that ... who
who ... that
which ... whom
✅ "that ... who" — "that" สำหรับสิ่งของ (key) และ "who" สำหรับคน (anyone) ทั้งสองเป็น defining clauses

📊 ตาราง LINE Bot + AI Terms
Reference Table

Term Thai / ไทย Description
Webhook เว็บฮุก A URL that receives data when events happen — URL ที่รับข้อมูลเมื่อเกิดเหตุการณ์
API (Application Programming Interface) เอพีไอ A way for programs to communicate — ช่องทางที่โปรแกรมใช้สื่อสารกัน
Channel Access Token โทเค็นการเข้าถึงช่อง A secret key that lets your bot send LINE messages — กุญแจลับที่ให้บอทส่งข้อความ LINE
Reply Token โทเค็นตอบกลับ A one-time token that is used to reply to a specific message — โทเค็นใช้ครั้งเดียวสำหรับตอบข้อความเฉพาะ
NLP (Natural Language Processing) การประมวลผลภาษาธรรมชาติ AI that understands human language — AI ที่เข้าใจภาษามนุษย์
Intent เจตนา What the user wants — สิ่งที่ผู้ใช้ต้องการ
Entity เอนทิตี Key information extracted from messages — ข้อมูลสำคัญที่ดึงจากข้อความ
Conversation Flow ลำดับการสนทนา The planned path of a conversation — เส้นทางที่วางไว้ของการสนทนา
System Prompt คำสั่งระบบ Instructions that tell AI how to behave — คำสั่งที่บอก AI ว่าควรทำตัวอย่างไร
Deploy ติดตั้ง/นำขึ้นใช้งาน Making your bot available to real users — ทำให้บอทพร้อมใช้งานจริง
Fallback Response คำตอบสำรอง A response that is used when the bot doesn't understand — คำตอบที่ใช้เมื่อบอทไม่เข้าใจ
Rich Menu เมนูริช A custom menu that appears in LINE chat — เมนูที่กำหนดเองในแชท LINE

🧪 Section Check — ตรวจสอบความเข้าใจ

Reference Table Review — ทบทวนตารางอ้างอิง

0/3

The webhook is the URL ______ LINE sends user messages to your server.

Webhook คือ URL ______LINE ส่งข้อความของผู้ใช้ไปยังเซิร์ฟเวอร์ของคุณ

who
which
where
✅ "where" — ใช้ "where" เพราะ URL เป็นสถานที่/ตำแหน่งที่ LINE ส่งข้อมูลไป "where" ใช้สำหรับ relative clause ที่ขยายสถานที่

A Rich Menu is a custom menu ______ appears at the bottom of a LINE chat.

Rich Menu คือเมนูที่กำหนดเอง______แสดงที่ด้านล่างของแชท LINE

that
who
whom
✅ "that" — Rich Menu เป็นสิ่งของ ใช้ "that" สำหรับ defining clause (ข้อมูลจำเป็น บอกว่าเป็น menu แบบไหน) "who" ใช้กับคนเท่านั้น

A fallback response, ______ is used when the bot does not understand, should be friendly and helpful.

คำตอบสำรอง______ใช้เมื่อบอทไม่เข้าใจ ควรเป็นมิตรและมีประโยชน์

that
which
where
✅ "which" — มี comma ก่อนอนุประโยค = non-defining clause ต้องใช้ "which" สำหรับสิ่งของ ห้ามใช้ "that" ใน non-defining clause!

🎯 สรุป
Summary

🇹🇭 สิ่งที่คุณได้เรียนรู้

  • AI LINE Bot คืออะไรและแตกต่างจากบอทธรรมดาอย่างไร
  • คำศัพท์สำคัญ: webhook, API, NLP, intent, entity, deploy
  • Relative Clauses: that/which/who (defining vs non-defining)
  • ขั้นตอนการเชื่อมต่อ AI กับ LINE Bot
  • การสร้างบอทที่ตอบคำถามด้วย AI

🇬🇧 What You Have Learned

  • What AI LINE bots are and how they differ from rule-based bots
  • Key vocabulary: webhook, API, NLP, intent, entity, deploy
  • Relative Clauses: that/which/who (defining vs non-defining)
  • The steps that are needed to connect AI to a LINE Bot
  • How to build a bot that answers questions using AI

🎉 ยินดีด้วย! / Congratulations!

คุณพร้อมสร้าง AI LINE Bot แล้ว!

You now know the concepts that are needed to build a smart LINE bot! The AI, which you will connect to LINE, will make your bot truly intelligent! Developers who master these skills are in high demand! 🤖

🧪 Final Review — ทบทวนสุดท้าย

AI + LINE Bot & Relative Clauses — ทบทวนทั้งหมด

0/3

Developers ______ build LINE bots need to register on the LINE Developers website.

นักพัฒนา______สร้าง LINE bot ต้องสมัครบัญชีที่เว็บไซต์ LINE Developers

which
who
where
✅ "who" — Developers เป็นคน ใช้ "who" สำหรับ defining clause ที่ขยายคน (บอกว่านักพัฒนาแบบไหน)

LINE Developers, ______ is the website where you create bot channels, is free to use.

LINE Developers ______เป็นเว็บไซต์ที่คุณสร้าง bot channels ใช้ฟรี

that
which
who
✅ "which" — มี comma = non-defining clause ต้องใช้ "which" สำหรับสิ่งของ (website) ห้ามใช้ "that" ใน non-defining clause!

What are the correct steps to build an AI LINE bot?

ขั้นตอนที่ถูกต้องในการสร้าง AI LINE bot คืออะไร?

Write AI code → Deploy → Create LINE channel
Create LINE channel → Set up webhook → Connect AI → Reply to users → Test
Test the bot → Write code → Create LINE channel
✅ ขั้นตอนที่ถูกต้อง: สร้าง LINE channel ก่อน → ตั้งค่า webhook → เชื่อมต่อ AI → ส่งคำตอบกลับผู้ใช้ → ทดสอบและปรับปรุง ตามที่เรียนในบทเรียนนี้!