The Dust app will include the following blocks:
INPUT: Receives the inputs from the Dust agentCONFIG: Set up global constants that can be reused throughout the app.GET_JOB_ID: Sends a request to the Catalog public API using the input data to trigger the AI Assistant, then retrieves the jobIdCHECK_JOB_ID: Handle the error and output from the previous step.POLLING: A loop that repeatedly checks the Catalog public API
POLL_API: Uses the jobId to fetch the AI Assistant’s result from the Catalog public APISUMMARY: Processes and returns the final responseINPUT blockCONFIG blockGET_JOB_ID blockCHECK_JOB_ID blockPOLLING blockPOLL_API blockSUMMARY block