takenet / blip-sdk-csharp

The C# SDK for the blip.ai bot platform
https://blip.ai
Apache License 2.0
32 stars 42 forks source link

Allow Process Command Action using tunnel destination #172

Closed arthursoas closed 1 year ago

arthursoas commented 1 year ago

Some commands must be processed in the name of the tunnel destination, instead of the tunnel owner. When trying to perform process command actions when tunnel owner context is enabled, this can be an issue.

This PR adds a setting to the action to allow the user to specify if the command should be made in the name of the tunnel owner or the tunnel destination.

It also adds metadata to save all commands performed through actions.

ravpacheco commented 1 year ago

Please accept this PR 😄 🚀 🪨

arthursoas commented 1 year ago

Please accept this PR 😄 🚀 🪨

As @ceifa said, setting command "from" is enough to make the behavior explained on pull request description.

Actually, do this is already possible by just adding the "from" on process command action on flow JSON, with no changes required on SDK side.

This possibility will be added as a native option on Blip Portal Builder.

Please, let me know if the "from" approach does not solve a problem this PR would solve for your scenario.

arthursoas commented 1 year ago

This feature was added as the option "Use chatbot context" onto Blip Builder.