Skip to content

Instantly share code, notes, and snippets.

const fetch = require('node-fetch');
const dialogflow = require('dialogflow');
const projectId = '<Dialogflow JSON project_id>';
const dfConfig = {
credentials: {
private_key: '<Dialogflow JSON private_key>',
client_email: '<Dialogflow JSON client_email>'
}
}