Amazon Q Business
Amazon Q Business คือ generative AI assistant ระดับองค์กรที่เชื่อมต่อกับข้อมูลและระบบภายในบริษัทของคุณ เพื่อตอบคำถาม สรุปเอกสาร และทำงานอัตโนมัติผ่าน natural language ไม่ใช่แค่ chatbot ทั่วไป Q Business เข้าถึงข้อมูลจริงขององค์กรจากแหล่งต่าง ๆ กว่า 40 แหล่ง ทั้ง SharePoint, Confluence, Salesforce, Jira, Google Drive, Gmail, S3 และอื่น ๆ แล้วตอบด้วย context ที่เฉพาะเจาะจงกับองค์กรคุณ
จุดแตกต่างสำคัญของ Q Business คือระบบ document-level access control ที่เข้มงวด ผู้ใช้แต่ละคนจะเห็นเฉพาะข้อมูลที่ตนมีสิทธิ์เข้าถึงตามระบบ permission ของแหล่งข้อมูลต้นทาง ไม่ว่าจะเป็น SharePoint permissions, S3 bucket policies หรือ Salesforce record-level security ทำให้ Q Business เหมาะสำหรับองค์กรที่มีข้อกำหนด compliance สูง
AWS Docs: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/what-is.html
สถาปัตยกรรม
ฟีเจอร์หลัก
Connectors (40+ Data Sources)
Q Business รองรับ connector สำเร็จรูปกว่า 40 ตัว ครอบคลุมทุกประเภทข้อมูลองค์กร:
Document Management:
- Microsoft SharePoint Online / Server
- Microsoft OneDrive
- Google Drive / Google Workspace
- Box, Dropbox
- Amazon S3
Collaboration & Project Management:
- Atlassian Confluence Cloud/Server
- Atlassian Jira Cloud/Server
- Microsoft Teams (channels, files)
- Slack (messages, files)
- GitHub, GitLab (wikis, issues)
- Asana, Trello, Monday.com
CRM & Business Applications:
- Salesforce (cases, knowledge articles, opportunities)
- ServiceNow (knowledge base, incidents, problems)
- Zendesk (tickets, help center articles)
- HubSpot
Communication:
- Microsoft Exchange / Outlook
- Gmail
- Quip
Databases & Content:
- Amazon RDS (MySQL, PostgreSQL)
- Web Crawler (intranet, public websites)
- Custom API Connector (สำหรับระบบเฉพาะองค์กร)
Plugins (Action Execution)
นอกจากการตอบคำถาม Q Business ยังสามารถดำเนินการในระบบภายนอกได้ผ่าน Plugins:
- สร้าง Jira ticket โดยตรงจาก Q Business chat
- สร้าง ServiceNow incident
- อัปเดต Salesforce record
- ส่ง email ผ่าน Microsoft 365
- Custom plugins ผ่าน OpenAPI spec
Admin Controls & Guardrails
ผู้ดูแลระบบสามารถกำหนด guardrails เพื่อควบคุมพฤติกรรมของ Q Business:
- Topic restrictions — บล็อกหัวข้อที่ไม่ต้องการ เช่น หัวข้อการเมือง, ข้อมูลคู่แข่ง
- Response filtering — กรอง responses ที่ไม่เหมาะสมตาม business policy
- Blocked phrases — กำหนดคำหรือข้อมูลที่ห้ามแสดงในคำตอบ
- Domain restrictions — จำกัด scope ของคำถามให้อยู่ในขอบเขต business domain
Document-level Permissions
ระบบ sync permissions จากแหล่งข้อมูลต้นทางโดยอัตโนมัติ ผู้ใช้ที่ไม่มีสิทธิ์อ่านเอกสารใน SharePoint จะไม่สามารถเห็นเนื้อหาเอกสารนั้นในคำตอบของ Q Business ได้ รองรับ user-level และ group-level permissions
Q Apps
เครื่องมือสร้าง mini-applications ภายในองค์กรด้วยการอธิบายเป็นภาษาธรรมชาติ เช่น:
- "สร้างฟอร์ม submit expense report"
- "สร้างเครื่องมือสรุป meeting notes จากไฟล์ที่แนบ"
- "สร้าง quiz สำหรับ onboarding training" Q Apps สามารถ share ให้กับทีมอื่น ๆ ในองค์กรได้
Analytics Dashboard
Dashboard แสดงสถิติการใช้งาน Q Business ขององค์กร เช่น:
- จำนวน conversations และ queries ต่อวัน
- หัวข้อที่ถามบ่อยที่สุด
- User adoption rate
- ช่องทาง (connector) ที่ถูกอ้างอิงบ่อย
- Response quality feedback
IAM Identity Center Integration
Q Business ต้องใช้ AWS IAM Identity Center (SSO) สำหรับ user authentication รองรับ integration กับ Active Directory, Okta, Azure AD และ SAML 2.0 providers ทำให้ผู้ใช้ login ด้วย corporate credentials ได้เลย
Cross-application Actions (Pro tier)
ผู้ใช้ Pro tier สามารถสั่งให้ Q Business ดำเนินการข้ามระบบได้ เช่น "สรุป meeting notes จาก Confluence แล้วสร้าง action items ใน Jira" โดย Q จะทำหลายขั้นตอนให้อัตโนมัติ
การติดตั้งและการตั้งค่า
ขั้นตอนการ Setup Q Business
- ไปที่ AWS Console > Amazon Q Business > Create Application
- ตั้งชื่อ application และเลือก IAM Identity Center instance
- เลือก retriever (Q Business managed หรือ Amazon Kendra)
- เพิ่ม Data Sources (เลือก connector และกำหนด credentials)
- กำหนด sync schedule สำหรับแต่ละ data source
- เปิดใช้งาน Plugins ที่ต้องการ
- กำหนด Admin Controls & Guardrails
- ตั้งค่า IAM Identity Center สำหรับ user management
- Deploy Web Experience หรือ embed ใน internal portal
IAM Permissions สำหรับ Q Business
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"qbusiness:ChatSync",
"qbusiness:Chat",
"qbusiness:ListConversations",
"qbusiness:GetConversation",
"qbusiness:DeleteConversation",
"qbusiness:PutFeedback",
"qbusiness:CreatePlugin",
"qbusiness:ListPlugins"
],
"Resource": "arn:aws:qbusiness:ap-southeast-1:*:application/*"
}
]
}
ติดตั้ง SDK
pip install boto3
# Q Business ใช้ boto3 client "qbusiness"
วิธีใช้งาน
ตัวอย่าง: Chat กับ Q Business ผ่าน Python SDK
import boto3
client = boto3.client("qbusiness", region_name="ap-southeast-1")
# เริ่ม conversation
response = client.chat_sync(
applicationId="APP_ID_HERE",
userId="[email protected]",
userGroups=["hr-team"],
userMessage="ขั้นตอนการขอลาพักร้อนมีอะไรบ้าง และต้องยื่นล่วงหน้ากี่วัน",
conversationId="conv-001" # optional: continue conversation
)
print("Answer:", response["systemMessage"])
print("\nSources:")
for source in response.get("sourceAttributions", []):
print(f" - {source['title']}: {source['url']}")
ตัวอย่าง: Streaming Chat Response
import boto3
client = boto3.client("qbusiness", region_name="ap-southeast-1")
# Chat แบบ streaming (Pro tier)
response = client.chat(
applicationId="APP_ID_HERE",
userId="[email protected]",
inputStream={
"configurationEvent": {
"chatMode": "RETRIEVAL_MODE"
}
}
)
# อ่าน stream
for event in response["outputStream"]:
if "textEvent" in event:
print(event["textEvent"]["systemMessage"], end="", flush=True)
ตัวอย่าง: สร้าง Data Source Connector (S3)
import boto3
client = boto3.client("qbusiness", region_name="ap-southeast-1")
response = client.create_data_source(
applicationId="APP_ID_HERE",
indexId="INDEX_ID_HERE",
displayName="HR-Documents-S3",
configuration={
"type": "S3",
"connectionConfiguration": {
"repositoryEndpointMetadata": {
"BucketName": "hr-documents-bucket"
}
},
"syncMode": "FULL_CRAWL",
"repositoryConfigurations": {
"document": {
"fieldMappings": [
{
"indexFieldName": "_document_title",
"indexFieldType": "STRING",
"dataSourceFieldName": "title"
}
]
}
}
},
roleArn="arn:aws:iam::123456789:role/QBusinessS3Role",
syncSchedule="cron(0 6 * * ? *)" # sync ทุกวันตี 6
)
print("Data Source ID:", response["dataSourceId"])
ตัวอย่าง: Embed Web Experience ใน Internal Portal
<!-- embed Q Business web experience -->
<iframe
src="https://[app-id].chat.qbusiness.ap-southeast-1.on.aws/"
width="100%"
height="600px"
style="border: none;"
allow="clipboard-write"
></iframe>
ตัวอย่าง: สร้าง Plugin สำหรับ Create Jira Ticket
# กำหนด plugin configuration ผ่าน Console หรือ API
plugin_config = {
"type": "JIRA",
"serverUrl": "https://company.atlassian.net",
"authConfiguration": {
"basicAuthConfiguration": {
"secretArn": "arn:aws:secretsmanager:...:jira-credentials"
}
}
}
# เมื่อ enable plugin ผู้ใช้สามารถพูดว่า:
# "สร้าง Jira bug ticket สำหรับปัญหา login ใน project MOBILE"
# Q Business จะสร้าง ticket ให้อัตโนมัติ
ราคา (ประมาณการในบาท)
ราคาคำนวณจาก 1 USD = 35 บาท
Lite Tier
| รายการ | USD | บาท |
|---|---|---|
| ราคา/user/เดือน | $3 | ~105 บาท |
| ฟีเจอร์ | Q&A จากเอกสาร | — |
| Q Apps | ไม่รวม | — |
Pro Tier
| รายการ | USD | บาท |
|---|---|---|
| ราคา/user/เดือน | $20 | ~700 บาท |
| ฟีเจอร์ | ครบทุกฟีเจอร์ | — |
| Q Apps | รวมอยู่ | — |
| Plugins (action execution) | รวมอยู่ | — |
| Document creation | รวมอยู่ | — |
หมายเหตุ
- ราคารวม IAM Identity Center สำหรับจัดการ users แล้ว
- ไม่มีค่า per-query หรือ API call เพิ่มเติม
- ราคาคิดตามจำนวน active users ต่อเดือน
ตัวอย่างค่าใช้จ่ายรายเดือน
- ทีมเล็ก 20 คน (Lite): 2,100 บาท/เดือน
- ทีมกลาง 100 คน (Pro): 70,000 บาท/เดือน
- องค์กรใหญ่ 1,000 คน (Pro): 700,000 บาท/เดือน
- Hybrid 500 Lite + 100 Pro: 52,500 + 70,000 = 122,500 บาท/เดือน
เหมาะสำหรับ
- องค์กรขนาดใหญ่ที่ต้องการ AI assistant ที่รู้จักข้อมูลภายในบริษัทโดยเฉพาะ
- ทีม HR ที่ต้องตอบคำถามซ้ำ ๆ เรื่องนโยบาย, สวัสดิการ, ขั้นตอนการทำงาน
- IT Helpdesk ที่ต้องการลด ticket volume จากคำถามที่มีคำตอบในเอกสาร
- ทีม Sales ที่ต้องการค้นหา product information, pricing, proposal templates อย่างรวดเร็ว
- Legal & Compliance ที่ต้องค้นหาใน contracts, regulations, internal policies
- บริษัทที่ต้องการ AI assistant แต่มีข้อกำหนด data sovereignty และ access control เข้มงวด
- ทีม Customer Support ที่ต้องการ AI ช่วยค้นหาคำตอบจาก knowledge base ในขณะรับสาย
ใช้ร่วมกับ AWS Services
- AWS IAM Identity Center — user authentication และ SSO
- Amazon S3 — เก็บเอกสารและ attachments
- AWS Secrets Manager — เก็บ credentials สำหรับ connectors
- Amazon CloudWatch — monitor usage, errors, performance
- AWS Lambda — custom plugins และ data enrichment
- Amazon Kendra — ใช้ Kendra เป็น retriever แทน built-in (Enterprise)
- Amazon Bedrock — เปลี่ยน underlying LLM สำหรับ responses
- Amazon OpenSearch — index และ search ขนาดใหญ่
- AWS CloudTrail — audit log สำหรับ compliance
- Amazon VPC — network isolation สำหรับ sensitive workloads
Use Case ตัวอย่าง
1. HR Assistant สำหรับบริษัทประกันภัยขนาดใหญ่
บริษัทประกันภัยที่มีพนักงาน 5,000 คน deploy Q Business Pro เชื่อมต่อกับ SharePoint (นโยบาย HR, คู่มือพนักงาน), Confluence (SOPs, training materials), และ Salesforce (ข้อมูลสวัสดิการ) พนักงานถาม Q Business ผ่าน web portal เรื่อง วันหยุด, การลา, สวัสดิการ, โบนัส, ขั้นตอน performance review โดยตรง ระบบตรวจสอบ permissions ให้อัตโนมัติ ผู้จัดการเห็นข้อมูลเพิ่มเติมที่พนักงานทั่วไปไม่เห็น ลดภาระ HR team ในการตอบอีเมลซ้ำ ๆ ได้ 70% และลด onboarding time จาก 3 เดือนเหลือ 3 สัปดาห์
2. Sales Enablement สำหรับบริษัท Software Enterprise
บริษัท B2B software deploy Q Business Pro สำหรับทีมขาย 200 คน เชื่อมต่อกับ Salesforce (deal history, customer profiles), Confluence (product documentation, case studies), SharePoint (pricing sheets, proposal templates), Jira (roadmap, feature requests) Sales rep ถามได้เลยว่า "มี case study การ deploy product ของเราใน banking sector บ้างไหม" หรือ "ราคา enterprise license สำหรับบริษัทที่มีพนักงาน 5,000 คนเป็นเท่าไหร่" พร้อมได้คำตอบและ source documents ทันที Win rate เพิ่มขึ้น 15% จากการที่ sales rep เตรียมข้อมูลได้แม่นยำขึ้น
3. Unified Knowledge Base สำหรับโรงพยาบาลเอกชน
โรงพยาบาลขนาดใหญ่ deploy Q Business Pro เชื่อมต่อกับ SharePoint (clinical protocols, drug references), S3 (ใบรับรองมาตรฐาน, ระเบียบปฏิบัติ), ServiceNow (IT incidents, maintenance schedules), Confluence (department SOPs) บุคลากรทางการแพทย์ถามเรื่อง drug interaction, clinical protocols, ขั้นตอนการ refer ผู้ป่วย ผ่าน internal portal Admin Controls ถูกตั้งให้ Q Business ไม่ให้คำแนะนำทางการแพทย์โดยตรง แต่อ้างอิงเฉพาะ clinical guidelines ที่ได้รับการอนุมัติ ลดเวลาค้นหา protocol จากเฉลี่ย 15 นาทีเหลือ 1 นาที