Method: projects.matchIntents
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি প্রদত্ত প্রশ্নের সাথে মেলে এমন অভিপ্রায়গুলি খুঁজে বের করে৷
HTTP অনুরোধ
POST https://actions.googleapis.com/v2/{project=projects/*}:matchIntents
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
project | string প্রয়োজন। প্রকল্পটি পরীক্ষা করা হচ্ছে, প্রকল্প আইডি দ্বারা নির্দেশিত৷ বিন্যাস: প্রকল্প/{project} |
শরীরের অনুরোধ
অনুরোধের অংশে নিম্নলিখিত কাঠামো সহ ডেটা রয়েছে:
JSON প্রতিনিধিত্ব |
---|
{
"query": string,
"locale": string
} |
ক্ষেত্র |
---|
query | string প্রয়োজন। প্লেইন টেক্সট হিসেবে ব্যবহারকারীর প্রশ্ন। |
locale | string প্রয়োজন। কোয়েরি মূল্যায়ন করার জন্য ব্যবহার করা লোকেল, যেমন "en"। বিন্যাসটি BCP 47 অনুসরণ করা উচিত: https://tools.ietf.org/html/bcp47 https://developers.google.com/assistant/console/languages-locales- এ সমর্থিত ভাষার তালিকা দেখুন |
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে নিম্নলিখিত কাঠামোর সাথে ডেটা থাকে:
মিলিত অভিপ্রায় খোঁজার জন্য প্রতিক্রিয়া.
JSON প্রতিনিধিত্ব |
---|
{
"matchedIntents": [
{
object (Intent )
}
]
} |
ক্ষেত্র |
---|
matchedIntents[] | object ( Intent ) অভিপ্রায় মিলেছে, সর্বাধিক থেকে কম প্রাসঙ্গিক পর্যন্ত অর্ডার করা হয়েছে। শুধুমাত্র প্রথম 50টি ম্যাচ ফেরত দেওয়া হয়। |
অভিপ্রায়
একটি অভিপ্রায় প্রতিনিধিত্ব করে।
JSON প্রতিনিধিত্ব |
---|
{
"name": string,
"params": {
string: {
object (IntentParameterValue )
},
...
},
"query": string
} |
ক্ষেত্র |
---|
name | string প্রয়োজন। শেষ মেলে অভিপ্রায়ের নাম। |
params | map (key: string, value: object ( IntentParameterValue )) প্রয়োজন। অভিপ্রায় ম্যাচিংয়ের অংশ হিসাবে চিহ্নিত পরামিতিগুলিকে প্রতিনিধিত্ব করে। এটি ব্যবহারকারীর ইনপুট থেকে চিহ্নিত প্যারামিটারের মানের সাথে চিহ্নিত প্যারামিটারের নামের একটি মানচিত্র। শনাক্ত করা মিলিত অভিপ্রায়ে সংজ্ঞায়িত সমস্ত পরামিতি এখানে প্রদর্শিত হবে। "key": value জোড়া। উদাহরণ: { "name": "wrench", "mass": "1.3kg", "count": "3" } |
query | string ঐচ্ছিক। শেষ ব্যবহারকারীর কাছ থেকে টাইপ করা বা কথ্য ইনপুট যা এই অভিপ্রায়ের সাথে মেলে। ব্যবহারকারীর ইনপুটের উপর ভিত্তি করে একটি অভিপ্রায় মিলে গেলে এটি পপুলেট করা হবে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eFinds the intents that match a given user query, returning the top 50 matches ranked by relevance.\u003c/p\u003e\n"],["\u003cp\u003eRequires a \u003ccode\u003ePOST\u003c/code\u003e request to the specified endpoint, including the project ID and user query.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the user query as plain text and the locale for evaluation.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of matched intents, each with its name, parameters, and the original query.\u003c/p\u003e\n"],["\u003cp\u003eEach intent object provides details like the intent name, identified parameters, and the portion of the user input that triggered the match.\u003c/p\u003e\n"]]],["This document details the process of matching user queries to intents via a `POST` request to `https://actions.googleapis.com/v2/{project=projects/*}:matchIntents`. The request requires a `project` path parameter, a JSON body with `query` and `locale` strings. The response returns a JSON object with `matchedIntents`, an array of matched intents, each with `name`, `params` (parameter name-value pairs), and `query` fields. Only the first 50 matching intents are returned, ordered from most to least relevant.\n"],null,["# Method: projects.matchIntents\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.MatchIntentsResponse.SCHEMA_REPRESENTATION)\n- [Intent](#Intent)\n - [JSON representation](#Intent.SCHEMA_REPRESENTATION)\n\nFinds the intents that match a given query.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2/{project=projects/*}:matchIntents`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------|\n| `project` | `string` Required. The project being tested, indicated by the Project ID. Format: projects/{project} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|-----------------------------------------------|---|\n| ``` { \"query\": string, \"locale\": string } ``` |\n\n| Fields ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `query` | `string` Required. User query as plain text. |\n| `locale` | `string` Required. Locale to use to evaluate the query, such as \"en\". The format should follow BCP 47: \u003chttps://tools.ietf.org/html/bcp47\u003e See the list of supported languages in \u003chttps://developers.google.com/assistant/console/languages-locales\u003e |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse for finding matching intents.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"matchedIntents\": [ { object (/assistant/actions/api/reference/rest/v2/projects/matchIntents#Intent) } ] } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `matchedIntents[]` | `object (`[Intent](/assistant/actions/api/reference/rest/v2/projects/matchIntents#Intent)`)` Intents matched, ordered from most to least relevant. Only the first 50 matches are returned. |\n\nIntent\n------\n\nRepresents an intent.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"params\": { string: { object (/assistant/actions/api/reference/rest/v2/IntentParameterValue) }, ... }, \"query\": string } ``` |\n\n| Fields ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the last matched intent. |\n| `params` | `map (key: string, value: object (`[IntentParameterValue](/assistant/actions/api/reference/rest/v2/IntentParameterValue)`))` Required. Represents parameters identified as part of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from user input. All parameters defined in the matched intent that are identified will be surfaced here. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `query` | `string` Optional. Typed or spoken input from the end user that matched this intent. This will be populated when an intent is matched, based on the user input. |"]]