অ্যাকশন প্যাকেজ (ডায়ালগফ্লো)
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি প্রতিটি লোকেলের জন্য আলাদা অ্যাকশন প্যাকেজ তৈরি করে এবং তারপর gactions
টুলের সাহায্যে আপনার অ্যাকশন প্রকল্পে সেগুলি আপলোড করে অ্যাকশন SDK-এর সাহায্যে স্থানীয়কৃত অ্যাকশন তৈরি করতে পারেন।
অ্যাকশন SDK-এর সাহায্যে স্থানীয়কৃত অ্যাকশন তৈরি করতে:
- প্রতিটি লোকেলের জন্য আলাদা অ্যাকশন প্যাকেজ তৈরি করুন যা আপনি সমর্থন করতে চান, তাদের স্থানীয় নাম দেন যেমন
action.de.json
এবং action.en.json
। বিকল্পভাবে, আপনি আপনার স্থানীয়কৃত অ্যাকশন প্যাকেজ এবং অন্যান্য সংস্থান ফাইলগুলির জন্য আপনার প্রকল্পে সাব-ডিরেক্টরি তৈরি করতে পারেন। - আপনি যে ভাষা বা লোকেল সমর্থন করতে চান তার সাথে আপনার অ্যাকশন প্যাকেজের শীর্ষে
locale
উপাদান যোগ করুন। উপরন্তু, আপনার অ্যাকশনের জন্য স্থানীয় ক্যোয়ারী প্যাটার্ন প্রদান করুন, যাতে ব্যবহারকারীরা তাদের যে লোকেলে আছে তার জন্য সঠিকভাবে ট্রিগার করতে পারে। উদাহরণস্বরূপ: {
"locale": "de",
"actions": [
{
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"<Insert German query patterns here>"
]
}
}
}
]
}
- আপনার অ্যাকশন প্রকল্পে আপনার অ্যাকশন প্যাকেজগুলি আপলোড করতে
gactions
টুল ব্যবহার করুন, আপনার প্রতিটি স্থানীয় অ্যাকশন প্যাকেজ নির্দিষ্ট করে। যেমন: ./gactions update --project my-project-id --action_package action.de.json --action_package action.en.json --action_package action.fr.json --action_package action.ja.json --action_package action.ko.json
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eOAuth and Google Sign-In linking combines Google's authentication with custom logins for flexibility.\u003c/p\u003e\n"],["\u003cp\u003eThis linking type is ideal for Actions needing cross-platform functionality and support for non-Google accounts.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create accounts using their Google profile, link existing accounts, or sign in with other providers.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can choose between authorization code or implicit flow based on security and implementation complexity.\u003c/p\u003e\n"],["\u003cp\u003eAccount linking flows adapt based on service settings and user accounts to create secure and personalized experiences.\u003c/p\u003e\n"]]],[],null,["# Action packages (Dialogflow)\n\nYou can create localized Actions with the Actions SDK by creating separate\nAction packages for each locale and then uploading them to your Actions project\nwith the `gactions` tool.\n\nTo create localized Actions with the Actions SDK:\n\n1. Create separate Action packages for each locale that you want to support, giving them localized names such as `action.de.json` and `action.en.json`. Alternatively, you can create subdirectories in your project for your localized Action packages and other resource files.\n2. Add the `locale` element at the top of your Action package with the language or locale that you want to support. In addition, provide localized query patterns for your Actions, so that users can trigger them properly for the locale they are in. For example: \n\n ```text\n {\n \"locale\": \"de\",\n \"actions\": [\n {\n \"intent\": {\n \"name\": \"actions.intent.MAIN\",\n \"trigger\": {\n \"queryPatterns\": [\n \"\u003cInsert German query patterns here\u003e\"\n ]\n }\n }\n }\n ]\n }\n ```\n3. Use the [`gactions`](/assistant/df-asdk/actions-sdk/gactions-cli) tool to upload your Action packages to your Actions project, specifying each of your localized Action packages. For example: \n\n ```\n ./gactions update --project my-project-id --action_package action.de.json --action_package action.en.json --action_package action.fr.json --action_package action.ja.json --action_package action.ko.json\n ```"]]