The user sends a message. The user message contains 2 questions: “I forgot to pay the monthly fee, how much do I owe? What are the different consumption plans you offer?”
The first question: “I forgot to pay the monthly fee, how much do I owe?” forces me to make a query. I do an execute code card and fetch the specific information from that client and store the result of the query with the amount owed by the client in a variable called workflow.queryresult.
The second question: “What are the different consumption plans you offer?” has its answer contained in the Knwoledge base.
How can I return the result of the query to answer the first question and let the knowledge agent answer the second question?
Should I create an AI Task with the “Task input” containing workflow.queryresult and specify in the prompt that to generate the response, an analysis of the knowldege base must be carried out to see if there is relevant information to respond to? Or should I adopt another approach?