This file contains hidden or 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 Person = require('clearbit')(process.env.CLEARBIT_API_KEY).Person; | |
const Airtable = require('airtable'); | |
const base = new Airtable({ apiKey: process.env.AIRTABLE_API_KEY }).base(process.env.AIRTABLE_BASE_KEY); | |
// Maps typeform answers to columns in airtable | |
const typeformFieldsToAirtableFields = { | |
short_text: 'name', | |
email: 'email', | |
multiple_choice: 'message_type', |
NewerOlder