Skip to content
Chat Apps (Discord)...
 
Notifications
Clear all

Chat Apps (Discord): How to wait for a response in the scenario

4 Posts
3 Users
0 Reactions
5 Views
Eric_Automations
(@eric_automations)
Posts: 2
New Member
Topic starter
 

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:

  1. 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

 
Posted : 21/02/2023 9:58 pm
Make_Community_Bot
(@make_community_bot)
Posts: 3
New Member
 

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 camera-viewfinder-duotone screenshot of your scenario, including the relevant module configurations. Also, please share-all-duotoneshare the images here so the community can offer assistance.

This information will help us gain a better understanding of the challenge you're facing.

:make:

 
Posted : 22/02/2023 4:12 am
Wemakefuture
(@wemakefuture)
Posts: 13
Active Member
 

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.

:wink:

 
Posted : 22/02/2023 10:19 am
Eric_Automations
(@eric_automations)
Posts: 2
New Member
Topic starter
 

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.

 
Posted : 22/02/2023 2:04 pm
Share: