Query your API right from your website. Simply configure your API at our Online Portal and start querying your API immediately. You get a custom generative AI solution that allows you to query your API right from your website or from the online portal.
The natural language interface to your API allows non-technical users to obtain easy access your company's data. Users simply say what they want in their own words. The queries originate at your website and are seamlessly forwarded to the SageNLP API query system (in the background) for processing.
The following demonstrates the application of our Natural Language API Query system to accessing the OpenWeather API. You can query temperature, pressure, humidity, wind speed or general weather conditions in a number of cities. You can also obtain weather forcast for one to three days.
Configure your API and register your website at the Online Portal . All queries must originate from the website which you register.
That's it! You are now ready to start querying your documents from your website. Your webpage will automatically be modified to include (a) a user input box where users can type their queries, (b) a drop-down menu with your published files, and (c) a Submit button.
If you desire greater control over the placement and style of the user input box, drop-down menu, and submit button, you can add these elements to your webpage yourself. The user input box should have id="sagenlp_userInput", the submit button should have id="sagenlp_submit". You will also need to add a div (id="sagenlp_Rx") for displaying your results. An animated image (id="sagenlp_spinner" and src="https://sagenlp.com/images/giphyz.gif") may be added to indicate that a query request is being processed.