ConnerC

Text Components not rendering before API Call

Good afternoon VF.

In one of my assistants, I have built out the following flow:

1) User presses "Check the News Agent" button
2) Assistant responds with back to back stacked text components, "I am a new AI Agent....blah blah blah"
3) POST request to 3rd party API that scrapes a few website URLs and formats data, which is stored in variable {AINews_report}
4) Our last text block that shows the contents of said variable and shows the user the report.

Now this all works, which is great, but there's one problem.

The 2 stacked texts components do not render at all as a response from the assistant until the POST Request finishes processing.

So from the user it's:
  1. Click Button
  2. ... ... ... ... ... ... ... ... ... (this API is slow)
  3. 2 stacked text blocks + report all at once
Why is this happening? The text blocks are clearly ahead of the API call and should immediately respond from the assistant.

Attached Picture of the designer with some of the surrounded paths/blocks greyed out
Group_113.png
Was this page helpful?