Using Inworld AI's character engine, we'll create a conversational game that players can access by making a phone call. Role playing as Richard Papen from The Secret History, the player will call Julian Morrow, their estranged ex-professor. The goal is to get Julian to reveal his address, but Julian won't divulge his location unless he trust you...
- An Inworld AI account
- A Twilio Account
- A Google Cloud Account
- Installed ngrok
- Create Julian Morrow in your Inworld AI account, making sure to give him a Goal where he will reveal his address.
- Set up the Google Project and retrieve the service account key
- Set up a new GCP Project
- Enable the Google Speech-To-Text API for that project
- Create a service account.
- Download a private key as JSON.
- Modify the
.env.sample
file to include the path to your JSON service account key and save it as a.env
file - Add the Twilio authorization credentials as
ACCOUNT_SID
andAUTH_TOKEN
values to the .env file - Add the Inworld API key as
INWORLD_KEY
to the .env file - Update the
sceneData
variable in theindex.js
file to point to your own scene - Update the
workspaceName
variable in theindex.js
file to point to your own workspace - Update the
data
attribute in thesendTrigger
function to point to your trigger - Install the dependencies with
$ npm install
- Start ngrok with
$ ngrok http 8080
- Buy a phone number in Twilio and set its Voice Webhook to the URL provided by ngrok
- Start the server with
$ npm start
- Call the number and try to convince Julian to give up his address!