We’d like to display images with our Alexa responses if the device supports it.
I’ve created a custom code block (from this post):
has_display = voiceflow && voiceflow.capabilities && ('Alexa.Presentation.APL' in voiceflow.capabilities)
It looks like the has_display variable is being set properly.
My question is: do I have to put an
IF around the entire display block, or is there a way or a toggle in settings to show the display only if the device supports it? The other option I think I can use is a flow, but that means I need a special flow for each image I think.