Show HN: API to convert users' plaintext input into functions your site can run
rehance.aiCreated a way for anyone to define the data types associated with their SaaS/website such that we can parse plaintext user requests into function calls that the backend can handle. For example. User types “Rename all my documents in the ‘Memos’ folder to follow the pattern “[Department] Memo: [Date]”, our API yields JSON with the IDs of functions to be called and their parameters. How can SaaS owners plug this into their products? 1. create an account
2. define the functions your SaaS supports and the parameters necessary to run them
3. define the contextual data that may be needed to process the user's request
4. Add drop-in JS script to your site. Set the current user's contextual data, and connect the script's output to your site's functions. Tell the script to show the Rehance UI where it makes sense in your site. The script will display the UI when you tell it to, it will process user requests, convert them into functions you support, and run the functions if the user approves. More details about the Javascript steps required at https://rehance.ai/docs/integration