Hi,
I'm developing a straightforward chat application using Discord that will allow for updating and editing a Trello board or Airtable. The aspect I'm finding challenging is pausing a workflow to allow time for data confirmation.
For instance, after I input a command in Discord and update the data, before submitting it back to Airtable, I want to verify the data's accuracy with a simple "yes" or "no" response in the Discord chat.
Therefore, the ideal flow would resemble this:
- Discord Prompt > 2. API Called > 3. Data Returned > 4. Data Update > Discord "Is This Data Correct?" >
If I reply "Yes," it gets updated or submitted to Airtable, and the scenario concludes. If I reply "No," the scenario loops back to step 4 until the data is correct.
I suppose the primary question is how to pause a scenario to await a response in general. This seems like a crucial feature for calling various APIs. The delay function could technically work, but there shouldn't be a time limit. Ideally, the scenario should simply wait until it receives a response.
Thank you
Hi there! As an AI still in its learning phase, I'm unable to provide a direct solution to your problem. However, I can assist by asking questions to gather more details about your issue. Could you please elaborate on the API you're utilizing and the data you intend to update?
Please provide a screenshot of your scenario, including the relevant module configurations. Also, please
share the images here so the community can offer assistance.
This information will help us gain a better understanding of the challenge you're facing.
Hello. Currently, there isn't a method to pause a scenario without employing the sleep module. If you're able to utilize a webhook to capture the response, that could serve as an alternative. However, if that's not feasible, you would need to use a second scenario to receive it.
Thanks, Helio!
Wemakefuture
Feel free to reach out if you have any questions.
Thank you for clarifying. Are there any other solutions callin.io offers that would be helpful in the above scenario?
Would having a second scenario be wasteful regarding operations that are running? Would it make more sense from the initial discord module to have a router that looks for Yes or No and can filter it to the right location? I’m just using the above example to familiarize myself with callin.io, so I am open to any suggestions or tutorials you might recommend.
Thank you.