Skip to content

Workflows

A Prisme.ai workflow is a sequence of actions to execute which can either produce visual responses, logic blocks (conditions, repeats, ...) or calls towards others Prisme.ai resources.
You generally build workflows from your graph editor or Code tab, but they also can be returned directly from your APIs and functions resources.

Response types

Card

key type required ? description
type string required 'card'
title string required Card title
text string required Text content, below the image
image string optionnal image url
imageDisplay string optionnal "background-size" css property, by default "contain"
buttons array optionnal List of clickable elements at the bottom of the card
key type required ? description
type string required 'button', 'event' or 'link'
text string required Text shown as a button
value string required button: text that will be sent after click, event: event that will be sent, link: target url
openInPanel boolean optionnal Only for link, to open it in a panel
quickReply boolean optionnal Disable the other buttons when it is clicked

Examples

{
   {"text" : "Oui bien sûr"},
   {"type" : "button","text":"click me","value":"clicked"},
   {"type" : "link","text":"click me","value":"URL | tel:PHONENUMBER | mailto:EMAIL"},
   {"type" : "card","title":"I am a card","image":"image URL","text":"some text..","buttons":[
       {"type":"button | link","text":"...","value":"..."},
       {"..."}
   ]}
}