Ai Task and Knowledge Base
# 🤝help
g
I'm trying to work with a workflow. Where I'll use raw input as question. I want the workflow to be like first answer the question if there's answer found in knowledge base if there's no answer then use Ai Task to answer on its own like chatGPT. Need help
a
I would do it like this:

https://cdn.discordapp.com/attachments/1144964673607827526/1144968679663079455/image.png

enable knowledge base in the first node
and in the expressions use turn.Knowledge.answer == true (or false)
in ai task state in the input to answer @workflow.question
g
Inthe text card in standard3 should be turn.knowledge.answer right ?
a
that was just for example, i don't know what you want to do if the question is answered
you need to use turn.knowledge.answer only if you have manual answering enabled
g

https://cdn.discordapp.com/attachments/1144964673607827526/1145040417352601720/rn_image_picker_lib_temp_b24b2adf-ca7e-4ec9-a4a5-63d8acf6cc3a.jpg

https://cdn.discordapp.com/attachments/1144964673607827526/1145040686631108628/rn_image_picker_lib_temp_56390bc3-2f36-4be0-a400-623ff1f7037c.jpg

https://cdn.discordapp.com/attachments/1144964673607827526/1145040687285416017/rn_image_picker_lib_temp_b900672c-39d4-46c1-a178-c378d6a92a35.jpg

https://cdn.discordapp.com/attachments/1144964673607827526/1145040687860039831/rn_image_picker_lib_temp_db9b985f-8503-4895-ab76-1ebfcc86fab1.jpg

4 Views