Requirements:
- NRAI version 0.34.5 or higher
- SDK version 0.3.6 or higher
1
Initialize the SDK
Follow the instructions in the Embed Builder to initialize the SDK.
2
Call (request) Method
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send requests to your NRAI instance from the embedded app
Initialize the SDK
Call (request) Method
<script>
NRAI.request({path:'/flows',method:'GET'}).then(console.log);
</script>
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| path | ✅ | string | The path within your instance you want to hit (we prepend the path with your_instance_url/api/v1) |
| method | ✅ | string | The http method to use ‘GET’, ‘POST’,‘PUT’, ‘DELETE’, ‘OPTIONS’, ‘PATCH’ and ‘HEAD |
| body | ❌ | JSON object | The json body of your request |
| queryParams | ❌ | Record<string,string> | The query params to include in your request |