ऐक्शन पैकेज (Dialogflow)
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
आप अलग-अलग कॉलम में,
हर स्थान-भाषा के लिए ऐक्शन पैकेज और फिर उन्हें आपके Actions प्रोजेक्ट में अपलोड करना
gactions
टूल का इस्तेमाल करें.
ऐक्शन SDK टूल की मदद से, स्थानीय भाषा के मुताबिक कार्रवाइयां बनाने के लिए:
- हर उस स्थान-भाषा के लिए अलग-अलग Action पैकेज बनाएं जिसके लिए आपको सुविधा देनी है,
देकर उन्हें स्थानीय जगह के अनुसार नाम दें, जैसे कि
action.de.json
और action.en.json
.
इसके अलावा, प्रोजेक्ट में
स्थानीय भाषा के अनुसार कार्रवाई पैकेज और अन्य संसाधन फ़ाइलें.
- अपने ऐक्शन पैकेज में सबसे ऊपर, भाषा की मदद से
locale
एलिमेंट जोड़ें
या स्थान-भाषा का इस्तेमाल करें जिसके लिए आपको सहायता चाहिए. इसके अलावा, स्थानीय भाषा में क्वेरी उपलब्ध कराएं
आपकी कार्रवाइयों के पैटर्न मौजूद हैं, ताकि उपयोगकर्ता
स्थान-भाषा इस्तेमाल कर सकते हैं. उदाहरण के लिए:
{
"locale": "de",
"actions": [
{
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"<Insert German query patterns here>"
]
}
}
}
]
}
gactions
टूल का इस्तेमाल करके
आपके Actions प्रोजेक्ट के कार्रवाई पैकेज, जिसमें आपकी हर स्थानीय जगह के अनुसार जानकारी दी जाती है
ऐक्शन पैकेज. उदाहरण के लिए:
./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 साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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 ```"]]