Skip to content

Instantly share code, notes, and snippets.

@HeySreelal
Created March 18, 2022 12:48
Show Gist options
  • Save HeySreelal/2491a5d56176a2fe142985635f7950ba to your computer and use it in GitHub Desktop.
Save HeySreelal/2491a5d56176a2fe142985635f7950ba to your computer and use it in GitHub Desktop.
Actions On Google Fulfilment On Custom Server
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