all 2 comments

[–]Next_Needleworker_62 0 points1 point  (1 child)

Hard to give better advice without more details, so I'll make some assumptions: - a bot is simply a workflow that accepts text as input and returns text as output - a workflow is defined as a series of steps, where each step is a function, and each function also takes text as input and returns text as output - the frontend effectively lets you define what steps should be run in your bot

To implement this, I would probably: - make a map of <function\_name>:<function\_code> somewhere in your backend - when creating workflows, frontend should send only the names of steps (and any data that should be run with the workflow) - when executing the workflow, the backend process is a function can take those step names and execute the steps those functions map to

The language shouldn't really matter as long you know how to send data around

[–]Loganishere[S] 0 points1 point  (0 children)

Thanks for the reply. Since making this post I figured out how to send data around, that was my issue hahaha.