Categories:
Bridge channelData v3 configuration
Description of how the aura-bridge can be configured to communicate with aura-bot using channelData v3 for WhatsApp channels
Introduction
aura-bridge can handle WhatsApp messages and send them to aura-groot using channelData v2 and channelData v3. The version to be used will depend on the configuration of the channel.
How to configure a specific channel to use channelData V3
To configure a channel to use channelData v3, you should set the variable defaultDirectlineVersion to true in the channel:
{
"id": "888888-8888-8888-8888-8888888888",
"name": "whatsapp",
"prefix": "wa",
"responseOptions": {
.
.
.
"versions": {
"v2": {
"singleMessage": true
},
"v3": {
"singleMessage": true,
"defaultDirectlineVersion": true
}
},
"needsEmptyResponseEvent": true
},
"type": "whatsapp",
.
.
.
}
How to configure all channels to use channelData V3
On the contrary, if you want to configure at once all the WhatsApp channels to use channelData v3, you should set the following aura-bridge environment variable AURA_WHATSAPP_DIRECTLINE_DEFAULT_VERSION to 3.
Also with this configuration, you can configure any of the channels to use channelData v2 using the defaultDirectlineVersion flag, as seen previously.