Prerequisites
Before you get started, please make sure you have the following installed:- MacOS (arm64)
- Linux x64
- Windows x64
- macOS 14 and later
- Node.js v18 or higher
- Yarn or npm
- graphviz - Optional. Install this if you want to visualize your graph.
Installation
1
Create a Node.js project
We recommend starting with downloading and extracting our starter project, which has the necessary package structure to get you up and running quickly.
2
Install package
In the starter project directory’s root, install the Inworld Runtime SDK by running the following command:If you are not using the starter project, you can install the Runtime SDK with the following command:
3
Run an example
If using the starter project, run the example with the following command using your Base64 Runtime API key:Alternatively, you can also create a and run
.env file in the root directory and populate it with your API key:.env