- Action ID
actions.intent.GET_QUOTATION
- Description
- Get a quotation from a particular author or creative work.
- Example queries
- JSON-LD sample
-
[ { "exampleValues": [ { "@context": "https://pending.schema.org", "@type": "Quotation", "inLanguage": { "identifier": "jpn" }, "isPartOf": { "name": "Long Walk to Freedom" }, "keywords": "inspirational", "spokenByCharacter": { "name": "Nelson Mandela" }, "temporalCoverage": "2000-01-01T03:00:00/2099-12-12T23:59:59" } ], "name": "quotation", "schemaType": [ "https://pending.schema.org/Quotation" ] } ]
Get a quotation
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.GET_QUOTATION\u003c/code\u003e Action ID is used to request quotations from a specific author or work.\u003c/p\u003e\n"],["\u003cp\u003eUsers can trigger this action with simple queries like "Get a quote" or "Hear a quote from [author's name]".\u003c/p\u003e\n"],["\u003cp\u003eThis action utilizes JSON-LD to provide structured data about the requested quotation, including author, work, language, and keywords.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON-LD sample demonstrates how properties like \u003ccode\u003espokenByCharacter\u003c/code\u003e, \u003ccode\u003eisPartOf\u003c/code\u003e, and \u003ccode\u003etemporalCoverage\u003c/code\u003e can be used to specify details about the desired quotation.\u003c/p\u003e\n"]]],["The core content describes the `actions.intent.GET_QUOTATION` action, which retrieves a quote from an author or creative work. Users can request quotes generally or from specific individuals like Abraham Lincoln. The JSON-LD sample illustrates a quotation's structure, including author (e.g., Nelson Mandela), source work (e.g., \"Long Walk to Freedom\"), language, keywords, and time period. The structure also include the name and schema type of the action, and an example.\n"],null,["# Get a quotation\n\nAction ID\n: `actions.intent.GET_QUOTATION`\n\nDescription\n: Get a quotation from a particular author or creative work.\n\nExample queries\n:\n\n #### en-US\n\n - Get a quote.\n - Hear a quote from Abraham Lincoln.\n\nJSON-LD sample\n:\n\n ```carbon\n [\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://pending.schema.org\",\n \"@type\": \"Quotation\",\n \"inLanguage\": {\n \"identifier\": \"jpn\"\n },\n \"isPartOf\": {\n \"name\": \"Long Walk to Freedom\"\n },\n \"keywords\": \"inspirational\",\n \"spokenByCharacter\": {\n \"name\": \"Nelson Mandela\"\n },\n \"temporalCoverage\": \"2000-01-01T03:00:00/2099-12-12T23:59:59\"\n }\n ],\n \"name\": \"quotation\",\n \"schemaType\": [\n \"https://pending.schema.org/Quotation\"\n ]\n }\n ]\n ```"]]