The set-up:
We built a slack service that quickly posts a slack slash command payload to AWS (slack slash command request URL hits AWS API Gateway). API Gateway quickly responds to Slack (within 3 seconds). We use the slack payload (channel_id, response_url, etc) to axios post back to slack. This all works. In fact, we have multiple slack 'bots' so the incoming request determines which Lambda function to hit and caters the response to slack accordingly. We are not using slack bolt, we are not using the slack sdk. We are using node.
The problem:
Some of our slack bots will require a modal. We attempted to post to https://slack.com/api/views.open but by the time AWS APIGW -> Lambda -> posts to views.open, our trigger_id has expired (3 seconds is up) most of the time. Since we don't always need a modal, posting to views.open every time to acquire a view_id to display a modal further down the stream might be the only way, but doesn't seem efficient.
Any ideas on how to use modals, posting to views.open, without the slack sdk and without trigger_id expiring?
Thanks!