Project Overview
একটি সম্পূর্ণ AI Customer Support System তৈরি করবো যেখানে:
- Telegram-এ customer message পাঠাবে
- AI (GPT-4o) company knowledge base থেকে উত্তর দেবে
- AI সমাধান না দিতে পারলে human agent-কে notify করবে
- সব conversation Google Sheets-এ log হবে
সম্পূর্ণ Workflow
[Telegram Trigger — Customer message এলো]
↓
[Google Sheets — Customer history দেখা]
Search by: user telegram ID
↓
[Pinecone — Relevant FAQ/Policy খোঁজা]
Query: $json.message
Top K: 3
↓
[AI Agent — GPT-4o]
System: "আপনি TechShilpo-র support agent।
নিচের context ব্যবহার করে উত্তর দিন।
Context: {{ $json.pineconeResults }}
যদি উত্তর না জানেন, বলুন escalate"
Tools:
- check_order_status (WooCommerce API)
- get_customer_info (Google Sheets)
↓
[IF — Response contains "escalate" ?]
True ↓ False ↓
[Telegram — Customer-কে বলুন [Telegram — AI উত্তর পাঠানো]
"এজেন্টের সাথে connect করছি"]
[Telegram — Agent-কে ticket পাঠানো]
↓
[Google Sheets — Conversation log করা]
columns: user_id, message, response, timestamp, escalated
Knowledge Base আপডেট Workflow
[Google Drive Trigger — নতুন PDF/Doc যোগ হলে]
↓
[Google Drive — ফাইল পড়া]
↓
[Text Splitter — ৫০০ token chunks]
↓
[OpenAI Embeddings]
↓
[Pinecone — Upsert]
↓
[Telegram — "Knowledge base updated" notify]