Created
March 18, 2022 12:48
-
-
Save HeySreelal/2491a5d56176a2fe142985635f7950ba to your computer and use it in GitHub Desktop.
Actions On Google Fulfilment On Custom Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { conversation } = require('@assistant/conversation') | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const app = conversation() | |
app.handle('test_handle', conv => { | |
conv.add('Hey, finally you did it?') | |
}) | |
const expressApp = express().use(bodyParser.json()) | |
expressApp.post('/fulfillment', app) | |
expressApp.listen(3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment