elsa-workflows / elsa-workflows/elsa-core

Requests to the http endpoint do not wait for the entire workflow flow

Open
#6,728 7 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

I'm not sure if it's a bug or if I'm doing something wrong, but I'm unable to get the workflow to return the value I specify in the response as output. It just returns a 200 OK without waiting for the rest of the workflow to complete.

My goal is to have AI agents call these workflows, which in turn call other workflows and return the final result via an endpoint request.

I know that if I connect the endpoint directly to the response, it works — but that defeats the purpose. I want to run several steps in between; that’s the whole point of using an endpoint.

I imagine this happens because the HTTP request object isn’t passed through the entire flow. But for example, in the case of a delay, there’s no input/output I can use to pass values as variables.

Could you show me an example of how to do it correctly, if it's just me? Thank you very much in advance, have a nice day.

I'm using Elsa Studio:
![Image](https://github.com/user-attachments/assets/09a0e428-af76-42f6-8ae2-cc3f32d5e21d)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.