Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit a00614c

Browse files
Merge pull request #6 from artificialsolutions/develop
Update readme
2 parents c17aea3 + f5907f8 commit a00614c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ Next, we need to make the connector available via https. We'll use [ngrok](https
6767
6868
That's it! Call your Twilio number with your phone, and speak to your bot!
6969
70+
## Engine input parameters
71+
The connector will send the following input parameters along with the user input to the Teneo engine:
72+
73+
### channel
74+
The input parameter `channel` with value `twilio` is included in each request. This allows you to add channel specfic optimisations to your bot.
75+
76+
### digits
77+
In case the user switched to `dtmf` input, the digits entered are provided in the input parameter `digits`.
78+
79+
### twilioConfidence
80+
The `twilioConfidence` input parameter contains the confidence score of the Speech To Text engine used by Twilio.
81+
82+
### twilioCallerCountry
83+
The input parameter `twilioCallerCountry` contains the country code of the caller. You can use this to improve the Speech to Text model, for example by adding an output parameter `twilio_sttLanguage` with value `en-GB` to responses for callers calling from the UK.
84+
7085
## Engine output parameters
7186
The connector will check for the following output parameters in an output to send specific data to Twillo:
7287
@@ -82,5 +97,8 @@ If the output parameter `twilio_endCall` with the value `true` exists, the call
8297
### twilio_speechModel
8398
If the output parameter `twilio_speechModel` exists, it will be used to set a custom speech model. Allowed values are: 'default', 'numbers_and_commands' and 'phone_call'.
8499
100+
### twilio_sttLanguage
101+
If provided, will override the environment variable `LANGUAGE_STT`.
102+
85103
### twilio_inputType
86104
If the output parameter `twilio_inputType` exists, it will be used to set a custom input type. Allowed values are: 'dtmf', 'speech' or 'dtmf speech'. DTMF allows the end user to enter a number using the keypad of the phone. User must press # to mark end of the input. The digits entered by the user will be sent to engine using an input parameter `digits`.

0 commit comments

Comments
 (0)