I created this NPM library to simplify the journey to success with pro-code conversation management. Dialogflow ES requires a pro-code solution to managing conversation runtime state effectively. The initial goal of this project is to make life easier for creating pro-code conversations in Google Dialogflow ES for use with Dialogflow phone gateway and Cisco Webex Contact Center.
sequenceDiagram
participant User
participant FacebookMessenger
participant DialogflowES
participant WebhookFulfillment
User->>FacebookMessenger: Says: <br/>Hi there!
FacebookMessenger->>DialogflowES: Detect Intent: <br/>Hi there!
DialogflowES->>WebhookFulfillment: Fulfillment: <br/>Hi there!
Note right of WebhookFulfillment: Update conversation state and<br/>navigate to the next turn!
WebhookFulfillment-->>DialogflowES: Rsp: <br/>Hello, I'm Justin!
DialogflowES-->>FacebookMessenger: Rsp: <br/>Hello, I'm Justin!
FacebookMessenger-->>User: Rsp: <br/>Hello, I'm Justin!
Within the Dialogflow ES Console, navigate to Fulfillment, enable the In-line Editor.
Paste the contents of this template file into the index.js editor window.
Add the below dependency to the package.json editor window.
"dependencies": {
...
"codingforconvos": "^0.0.126",
...
}
Click Deploy.
The latest javascript documentation can be found here.