You can make use of channel-wide metadata to improve the re-usability and reduce the channel deployment time of a tree build. For example, in the scenario where you are deploying a FAQ tree build to a new channel, you can keep the exact same tree build and simply change the data source ID in the new channel's metadata setting.
In the following example, the user applied different data source IDs in the Channel-wide Metadata for Facebook Messenger & WhatsApp. You can clearly spot out that the content are slightly different but the conversation flow is the same.
You should decide which part of your chatbot build will be changed in different channels.
Locate that part of the chatbot build and apply this.channel.metadata
accordingly. For example, if you want to use a different data source for a different channel, you can locate and replace all the original data source ID with this.channel.metadata.faqDataSourceId
in the collectionName
.
Example Pre-action
Below is a sample metadata object for FAQ data source:
metadata.
you may designate any names to fit your use case."this.channel.metadata.faqDataSourceId"
, you may input the actual data (e.g. data source ID or API path) to be applied in a specific channel.