Hello n8n community!
I’ve build a SDK that seamlessly allows for function/tool call review and approvals on the channel to your choosing (slack, email, sms). It allows you to build headless workflows and have non-tech users interact with you automations/LLMs and the best part → it enables you to be one step ahead of ai compliance requirements. Particularly in the EU.
We are considering building an official integration into n8n but really wanted to hear some feedback and maybe connect with someone willing/interested in testing it out on their workflow?
Setup is extremely simply. Create a user on our web app, collect api key and integrate below code block.
On the app you can then define rules, escalations and channels.
How It Works
The @velatir.watch()
decorator intercepts function calls and:
- Sends the function details and arguments to the Velatir API
- Processes the API response:
- If
approved
: The function runs immediately - If
pending
: The SDK polls the API every 5 seconds until the request is approved or denied - If
denied
: An exception is raised and the function doesn’t run
Features
- Monitor function calls in real-time
- Approve or reject function execution
- Automatically handle pending approval states
- Works with both synchronous and asynchronous functions
- Customizable polling intervals and timeout settings