Legacy Dev Forum Posts

 View Only

Sign Up

Can Data Actions return response in Streaming?

  • 1.  Can Data Actions return response in Streaming?

    Posted 06-05-2025 18:46

    Santiago_Serna | 2024-06-07 07:11:12 UTC | #1

    Hi Genesys,

    we have a use case where we would like to implement the following...

    We have an Internal API which returns information in "streaming". As soon as the service has some information, it returns it. So our service does not wait until the response is complete to return it.

    That streaming is not a permanent connection that last for minutes, the API streams the text in the http response during 5-10 seconds

    In a messaging interaction, we want to send back that information to the customer as soon as the API is streaming...

    Is there any way to create a custom data action (or anything else) that behave as we need to deliver the API response to architect's flow as soon as it gets it?.

    Thanks for your help


    SimonBrown | 2024-06-07 08:51:55 UTC | #2

    Pretty sure the answer is no, but will wait for Genesys employee to respond.


    Jason_Mathison | 2024-06-07 13:52:19 UTC | #3

    That is not something that we directly support. You could implement this via an AWS Lambda, Google Function or Genesys Cloud Functions (Currently in Beta, see here: https://community.genesys.com/communities/genesys-cloud-beta-hq?CommunityKey=cbd2f140-168a-4c15-aacb-af2b23aa4329. )

    You can also submit an idea for this at https://genesyscloud.ideas.aha.io/ideas

    --Jason


    Santiago_Serna | 2024-06-10 07:22:17 UTC | #4

    Thanks Jason for your answer.

    I understand that if we develop a lambda function, as it will be called in Architect through a Data Action, the behaviour would be the same and that data action element won't be able to stream the content received.

    Could you please confirm that?

    Thanks


    Jerome.Saint-Marc | 2024-06-10 09:22:03 UTC | #5

    Hello,

    That is correct. Once the Data Action (Lamba or WebServices) returns a result, the control is given back to your Architect flow that can leverage this content to play/send it in a message.

    Regards,


    system | 2024-07-11 09:22:53 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 26655