- 操作 ID
actions.intent.GET_JOKE
- 说明
- 找个关于某个主题或创意作品的笑话。
- 示例查询
- JSON-LD 示例
-
[ { "exampleValues": [ { "@context": "https://schema.googleapis.org", "@type": "Joke", "about": { "name": "dogs" }, "author": { "name": "Jane Austen" }, "inLanguage": { "identifier": "hin" }, "isPartOf": { "name": "Pride and Prejudice" }, "temporalCoverage": "1990-01-01T00:00:00/1990-12-31T11:59:59" } ], "name": "joke", "schemaType": [ "https://schema.googleapis.org/Joke" ] } ]
讲笑话
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.GET_JOKE\u003c/code\u003e Action ID is used to request jokes, optionally specifying a topic or source.\u003c/p\u003e\n"],["\u003cp\u003eExample queries include "Let me hear a joke" or "Tell me a joke about dogs," demonstrating how users can request jokes.\u003c/p\u003e\n"],["\u003cp\u003eJSON-LD sample highlights schema properties like \u003ccode\u003eabout\u003c/code\u003e, \u003ccode\u003eauthor\u003c/code\u003e, \u003ccode\u003einLanguage\u003c/code\u003e, \u003ccode\u003eisPartOf\u003c/code\u003e, and \u003ccode\u003etemporalCoverage\u003c/code\u003e for representing joke information.\u003c/p\u003e\n"]]],["The `actions.intent.GET_JOKE` action retrieves jokes based on a specified topic or creative work. Users can request a general joke or one about a specific subject, like \"dogs.\" The JSON-LD structure defines joke properties, including the topic, author, language, and related creative work. Example query included. The temporal coverage is also included, to indicate the time range for which the content is relevant.\n"],null,["# Get joke\n\nAction ID\n: `actions.intent.GET_JOKE`\n\nDescription\n: Get a joke about a topic or from a creative work.\n\nExample queries\n:\n\n #### en-US\n\n - Let me hear a joke.\n - Tell me a joke about dogs.\n\nJSON-LD sample\n:\n\n ```carbon\n [\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://schema.googleapis.org\",\n \"@type\": \"Joke\",\n \"about\": {\n \"name\": \"dogs\"\n },\n \"author\": {\n \"name\": \"Jane Austen\"\n },\n \"inLanguage\": {\n \"identifier\": \"hin\"\n },\n \"isPartOf\": {\n \"name\": \"Pride and Prejudice\"\n },\n \"temporalCoverage\": \"1990-01-01T00:00:00/1990-12-31T11:59:59\"\n }\n ],\n \"name\": \"joke\",\n \"schemaType\": [\n \"https://schema.googleapis.org/Joke\"\n ]\n }\n ]\n ```"]]