Help Center अपने Instagram बॉट के लिए नॉलेज बेस वाला AI एजेंट बनाएँ

अपने Instagram बॉट के लिए नॉलेज बेस वाला AI एजेंट बनाएँ

यह गाइड बताती है कि MyCode.Bot में AI एजेंट कैसे बनाएँ: आप उसके निर्देश तय करते हैं, OpenAI कुंजी जोड़ते हैं, नॉलेज बेस अपलोड करते हैं और टेस्ट चैट में जवाब जाँचते हैं। उदाहरण में काल्पनिक दुकान Demo Shop है, जिसकी फ़ाइलें आप नीचे से डाउनलोड कर सकते हैं।

आपको क्या मिलेगा

एक ऐसा एजेंट जो आपके अपने कारोबार के बारे में सवालों के जवाब आपकी अपनी फ़ाइलों से देता है। वह कीमतें या तारीखें अपनी ओर से नहीं गढ़ता, और ऑर्डर से जुड़े सवाल और शिकायतें मैनेजर को सौंप देता है।

एजेंट बनाने से वह अभी Instagram से नहीं जुड़ता। ग्राहकों को उसके जवाब तब मिलने लगते हैं, जब आप एजेंट को AI agent नोड के साथ बॉट स्कीमा में जोड़ देते हैं।

शुरू करने से पहले

  1. panel.mycode.bot में साइन इन करें।
  2. OpenAI API कुंजी प्राप्त करें। अनुरोध आपकी कुंजी से जाते हैं, इसलिए OpenAI उनके लिए आपसे शुल्क लेता है।
  3. अगर आपके पास अभी बॉट नहीं है, तो बिना AI का Instagram बॉट से शुरू करें।

डेमो फ़ाइलें डाउनलोड करें

ये फ़ाइलें अंग्रेज़ी में एक काल्पनिक दुकान का वर्णन करती हैं। इनमें कोई कुंजी या ग्राहक डेटा नहीं है।

चरण 1. एजेंट बनाएँ

AI agents खोलें, Create agent दबाएँ और बुनियादी सेटिंग भरें:

फ़ील्डमान
Agent nameकोई भी नाम, उदाहरण के लिए Test shop agent।
Modelकोई भी उपलब्ध मॉडल। इस डेमो के लिए छोटा और तेज़ मॉडल काफ़ी है।
ProviderOpenAI
Knowledge modeStrict: एजेंट केवल आपके नॉलेज बेस से जवाब देता है।
Languageen
Tonefriendly_short
Maximum results5

चरण 2. निर्देश भरें

ये पाठ फ़ॉर्म में कॉपी करें, फिर Create दबाएँ।

Role prompt बताता है कि एजेंट कौन है और कैसा व्यवहार करता है:

You are the online assistant of Demo Shop, a small clothing store that sells everyday clothes made from organic cotton. You talk to customers in Instagram Direct. Help them choose products and sizes, and answer questions about prices, delivery, payment, returns and exchanges. Use only the facts from the knowledge base about the shop.

Business rules उसके जवाबों की सीमाएँ तय करते हैं:

- Keep every answer under 600 characters. Instagram cuts messages longer than 1000 characters.
- Write plain text without Markdown: no **bold**, no headings, no tables. Use short lines and emoji instead of lists when it helps.
- Answer in the language of the customer. If you are not sure, answer in English.
- Never invent prices, discounts, stock, delivery dates or order details.
- You cannot see orders. If the customer asks about a specific order, wants to change or cancel an order, has a delivery problem, complains, or asks for a person, say that a manager will help and set needs_human.
- Never ask for card details, codes or passwords.
- If the question is not about Demo Shop, say politely that you can only help with Demo Shop questions.
- When you recommend a size, ask for the customer's height or chest size if you do not know it.

Fallback text वह है जो एजेंट तब कहता है जब नॉलेज बेस में जवाब नहीं होता:

I don't have this information yet. Tap "📞 Call me back" and our manager will help you.

चरण 3. OpenAI कुंजी जोड़ें

  1. एजेंट का पेज खोलें, टैब Configuration।
  2. कुंजी को Provider token में चिपकाएँ और Create दबाएँ।

सहेजने के बाद पूरी कुंजी फ़ॉर्म से हट जाती है और केवल उसका मास्क दिखता है।

चरण 4. नॉलेज बेस अपलोड करें

  1. Knowledge Base टैब खोलें।
  2. डाउनलोड की हुई दोनों फ़ाइलें अपलोड करें। पहली फ़ाइल नॉलेज बेस अपने आप बना देती है।
  3. फ़ाइलों की स्थिति Ready होने तक प्रतीक्षा करें।

चरण 5. एजेंट चालू करें

Configuration टैब पर Active स्विच चालू करें। यह स्विच प्रोवाइडर टोकन जोड़ने के बाद ही काम करता है।

चरण 6. जवाब जाँचें

Test chat टैब खोलें और ये प्रश्न पूछें:

प्रश्नअपेक्षित उत्तर
What sizes does the hoodie come in?S से XXL तक, ढीला फ़िट; सामान्य फ़िट के लिए एक साइज़ छोटा लें।
I’m 175 cm tall. Which T-shirt size should I take?साइज़ M।
Do you ship to Canada? How long does it take?हाँ, 5–10 कार्य दिवस, $15, $100 से मुफ़्त।
Can I return a cap I bought 10 days ago?हाँ, 14 दिन के भीतर, बिना पहनी और टैग के साथ।
Where is my order #1234?एजेंट ऑर्डर नहीं देख सकता, इसलिए मैनेजर मदद करेगा।
What’s the weather in London today?विनम्र इनकार: वह केवल Demo Shop के सवालों में मदद करता है।

अपने डेटा का उपयोग करें

  1. Knowledge Base टैब में डेमो फ़ाइलों की जगह अपने उत्पादों और शर्तों की फ़ाइलें रखें।
  2. Role prompt और Business rules में दुकान का नाम बदलें।
  3. Language को अपने ग्राहकों की भाषा पर सेट करें और जवाब फिर से जाँचें।

नए एजेंट की संदेश सीमा होती है

नया एजेंट 50 संदेश भेज सकता है। उपयोग आप एजेंट के पेज पर देख सकते हैं। सीमा बढ़वाने के लिए support@smsbat.com पर लिखें।

अक्सर पूछे जाने वाले प्रश्न

एजेंट कहता है कि उसके पास जानकारी नहीं है, जबकि वह तथ्य मेरी फ़ाइल में है। जाँचें कि फ़ाइल की स्थिति Ready है और तथ्य सरल शब्दों में लिखा है। Strict मोड में एजेंट सामान्य ज्ञान से जवाब नहीं देता।

Active स्विच चालू नहीं होता। पहले Provider token में कुंजी जोड़ें।

एजेंट को Instagram से कैसे जोड़ें? AI agent नोड वाला स्कीमा इंपोर्ट करें और उसमें इसी एजेंट को चुनें।