https://discord.gg/botpress logo
Dynamic KB
# 🤝help
o
Yes! When getting the organization name, have an execute code card that says something like
Copy code
js
if (workflow.organization_name === 'InQuik') {
  workflow.organization_kbId = 'PLACE_THE_KB_ID'
}
else {
  workflow.organization_kbId = 'other_kb_id'
}
the knowledge base area you placed workflow.organization_name in only accepts kbids. Place a workflow variable that holds kbids in there. (i see you are sending the kbname instead of kbid...swap that out and you should be good 🙂 )