faint-traffic-426
07/11/2023, 12:25 PMacceptable-kangaroo-64719
07/11/2023, 12:33 PM{{turn.KnowledgeAgent.answer}}
, you can try something like this in an execute code card:
js
workflow.answerWithoutRefrences = /Refrences:/.text(turn.KnowledgeAgent.answer) ? /Refrences:/.exec(turn.KnowledgeAgent.answer)[0] : turn.KnowledgeAgent.answer
Then you can use a text card and say {{workflow.answerWithoutRefrences}}
and it should appear without the reference section. Make sure "manual answering" is turned on for your Knowledge agent, too!cool-scooter-96535
07/22/2023, 3:56 PMcool-scooter-96535
07/22/2023, 3:58 PMcool-scooter-96535
07/22/2023, 4:05 PMbillowy-sundown-22398
07/23/2023, 10:42 AMbillowy-sundown-22398
07/23/2023, 10:47 AMbillowy-sundown-22398
07/23/2023, 11:08 AMacceptable-kangaroo-64719
07/24/2023, 10:05 AMalert-jackal-32515
09/03/2023, 1:35 PMacceptable-kangaroo-64719
09/04/2023, 10:15 AM