Write and use multi-formats

You can use multiple formats

In main.js

import code from './main.converse'

export default {
    code,
    formats: {
        quickReplies(text, [actions]) {
            return {
                text,
                actions
            }
        },
        image(text, [image]) {
            return {
                text, 
                image
            }
        }
    }
}

In ConverseScript:

the result is

Merge formats

In main.js

In ConverseScript:

the result is

Last updated

Was this helpful?