Core Platform Output
Learn more about output templates for Jovo Core Platform.
Introduction
Jovo offers the ability to create structured output that is then translated into native platform responses.
This structured output is called output template. Its root properties are generic output elements that work across platforms. Learn more about how generic output is translated into a Core response below.
{ message: `Hello world! What's your name?`, reprompt: 'Could you tell me your name?', listen: true, }
You can also add platform-specific output to an output template. Learn more about Core-specific output below.
{ // ... platforms: { core: { // ... } } }
Generic Output Elements
Generic output elements are in the root of the output template and work across platforms. Learn more in the Jovo Output docs.
The Core Platform supports exactly the same output elements as they appear in the generic output.
Core-specific Output Elements
It is possible to add platform-specific output elements to an output template. Learn more in the Jovo output documentation.
For Core, you can add output elements inside an core
object:
{ // ... platforms: { core: { // ... } } }
Native Response
The nativeResponse
property allows you to add native elements exactly how they would be added to the Core JSON response.
{ // ... platforms: { core: { nativeResponse: { // ... } } } }