For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
https://blogs.oracle.com/mobile/techexchange%3a-developing-rich-conversational-user-interface-with-oracle-client-sdk-for-javascript-and-oracle-digital-assistant
Open The pdf and see the "Adding videos" section.
Hi Lorna,
Below is botml code for your reference. To test this, please create a new skill and replace the botML code with below one. Please let me know if it doesnot work.
#metadata: information about the flow
# platformVersion: the version of the bots platform that this flow was written to work with
metadata:
platformVersion: "1.0"
main: true
name: testpdf
#context: Define the variables which will used throughout the dialog flow here.
context:
variables:
#The syntax for defining the variables is variablename: "variableType".
# The "variableType" can be defined as a primitive type ("string", "boolean", "int", "float", "double"), "list", "map", "resourcebundle", or an entity name. A variable can also hold the results returned by the Intent Engine. For these variables, the "variableType" must be "nlpresult" (for example, iResult: "nlpresult").
imgURL: "string"
#states is where you can define the various states within your flow.
# The syntax for defining a state is
# statename:
# component:Specify the component you want to use. This can be either a Built-In or custom component.
# properties:
# property1: "value" (These are the properties to the specified component
# transitions: You can specify one of the following four
# next: Specify the state you want to execute next after this state. By default it will execute the state specified after this
# error: Specify the state you want to execute in case the component encounters any error in execution.
# actions: You can handle various actions returned by the components here the syntax is actionName: "statename"
# action1: state1
# return: "done" You can exit the flow using the return statement
states:
attachmentResponse:
component: "System.CommonResponse"
properties:
# set processUserMessage to true if the dialog flow should return to this state after receiving the user’s message.
processUserMessage: false
# set keepTurn to true if the dialog flow should transition to the next state without waiting for the user input. Only applicable when processUserMessage is false.
keepTurn: false
# metadata property specifies the structure of the bot response message(s) that are sent to the user. You can define text, card, and attachment message types, add actions to text and card messages, and specify global actions that typically appear at the bottom of the chat window.
metadata:
responseItems:
- type: "attachment"
#attachment type allowable values are: image, file, video, audio.
attachmentType: "video"
attachmentUrl: "https://file-examples.com/wp-content/uploads/2017/04/file_example_MP4_480_1_5MG.mp4"
# footerText (optional) is text that is displayed below the attachment.
footerText: "here is a sample video"
visible:
# boolean FreeMarker expression to conditionally show/hide the attachment.
expression:
# comma-delimited list of channel types for which the attachment should be shown (include) or hidden (exclude). Allowable values are: facebook, webhook, web, android, ios, twilio, kakaotalk and test.
channels:
include: "facebook, webhook, web, android, ios, twilio, kakaotalk, test"
exclude:
transitions:
return: "done"
https://blogs.oracle.com/mobile/techexchange%3a-developing-rich-conversational-user-interface-with-oracle-client-sdk-for-javascript-and-oracle-digital-assistant
Open The pdf and see the "Adding videos" section.