Documentation

Do you use documentation to use NewBot Framework

The constants

You can use the constants property to add constants to the conversational script

import code from './main.converse'

export default {
    code,
    constants: {
        URL: 'http://test.com'
    }
}

The key is the name of your constant (URL) containing any value

Use in the conversational script

Use the constant directly in the script:

test() {
   > My website is { URL }
}
© 2019 NewBot