Hello,
I have built a chatbot in appian. I have two objects in my interface. First is a text box, which takes user question. And, the second is a button user clicks to send question to AI bot and get response.
Currently, when text box loses focus, a local variable called isProcessing is turned to true(So the user can be shown that processing is occurring). And, when the button-press returns with AI response, the isProcessing is turned to false, and the AI response is shown to user.
I want to have it so that when the text box loses focus, the local variable isProcessing is turned to true, as well as data being sent to AI bot. And, then when AI bot returns, the isProcessing is turned to false, and result shown.
Is this possible?
Thanks for your time.
Discussion posts and replies are publicly visible
Yes possible. Use the text field's saveInto to set isProcessing = true and kick off the AI via a process model with a!startProcess.Note: a saveInto allows only one smart service, so use a process model if you need multiple backend steps.
Hello Shubham,
If I put isProcessing=true and startProcess(calling AI Skill) in same saveInto block:
isProcessing will not show up as True until the startProcess is finished processing ( by the that time the processing is done).
I've found that saveInto executes as a single block. It does not update interface until the entire block is finished.