This project is based on assistant-sdk-nodejs
- Create or open a project in the Actions Console
- Follow the instructions to register a device model
- Download
credentials.json
- Install the
google-oauthlib-tool
in a Python 3 virtual environment:
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
env/bin/pip install --upgrade "google-auth-oauthlib[tool]"
- Use the
google-oauthlib-tool
to generate credentials:
env/bin/google-oauthlib-tool --client-secrets credentials.json \
--credentials devicecredentials.json \
--scope https://www.googleapis.com/auth/assistant-sdk-prototype \
--save
Check API Docs for more information
POST https://rz-api.mybluemix.net/v1/assistant
{
"credentials": {
"refresh_token": "<refresh_token>",
"token_uri": "<token_uri>",
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"scopes": [
"<scope>"
]
},
"text": "<text>"
}
{
"text": "<response_text>>"
}