How to Automatically Import Contacts from a CSV File into VideoAsk ๐Ÿ“‚ | Community
Skip to main content
videoask guide

How to Automatically Import Contacts from a CSV File into VideoAsk ๐Ÿ“‚

  • November 22, 2022
  • 4 replies
  • 206 views
How to Automatically Import Contacts from a CSV File into VideoAsk ๐Ÿ“‚
andrew_videoask
Typeform
Forum|alt.badge.img+5

 

Imagine that you have a massive customer list ๐Ÿ“

 

Perhaps you run an ecommerce store, so your customer data is stored in Shopify. Or maybe you have an email newsletter with 100,000 subscribers in MailChimp. In any case, the issue is that these customersโ€™ names and email addresses are not connected to VideoAsk.

 

If you want to interact with these people via VideoAsk, youโ€™d have to manually create a contact for each customer. Depending on the size of your list, this process would either be tedious or unimaginably inefficient ๐Ÿ˜ญ

 

Work Smarter, Not Harder

 

Thankfully, in the video tutorial below, Iโ€™ll teach you how to seamlessly import your customersโ€™ contact details from a CSV file into your VideoAsk organization. Instead of spending hours or even days adding contacts one by one, you can automatically import your customer list in seconds ๐ŸŽ‰

 

You only need a few things, which Iโ€™ll explain in the video ๐Ÿ‘€

  • PyCharm (free)

  • Code snippet (see below)

  • VideoAsk (Grow plan or higher)

  • CSV file with your customer data

 

 

Hereโ€™s the Python code youโ€™ll want to copy and paste into PyCharm:

 

import csv
import json
import requests

csv_file_path = ""
organization_id = ""
api_token = ""

with open(csv_file_path, "r") as csv_file:
    data_reader = csv.reader(csv_file)
    for row in data_reader:
        name = row[0]
        email = row[1]

        url = "https://api.videoask.com/respondents"

        payload = json.dumps({
            "name": name,
            "email": email
        })

        headers = {
            "Authorization": f"Bearer {api_token}",
            "Content-Type": "application/json",
            "organization-id": organization_id
        }

        response = requests.request("POST", url, headers=headers, data=payload)
        print(response.text)

 

Congrats, you did it! Now you know how to easily import customer data from virtually any marketing software into VideoAsk ๐Ÿ™Œ

 

Keep in mind that you can run this program as many times as youโ€™d like. For example, letโ€™s imagine you just ran a marketing campaign and you have 5,000 new contacts in your CRM. 

 

That customer data wonโ€™t automatically sync with VideoAsk, so you can simply run the code in PyCharm again to keep things updated in VideoAsk. Youโ€™ll just need to update your API token and CSV file path before running the code. 

 

Questions? Feedback? Share your thoughts in the comments below! โฌ‡

 

And remember: If you can dream it, you can do it! Until next timeโ€ฆ

4 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5284 replies
  • November 22, 2022

#goldnugget   @andrew_videoask 


andrew_videoask
Typeform
Forum|alt.badge.img+5

@john.desborough Can I get fries with that golden nugget? ๐ŸŸ๐Ÿ—


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5284 replies
  • November 22, 2022
andrew_videoask wrote:

@john.desborough Can I get fries with that golden nugget? ๐ŸŸ๐Ÿ—

only baked sweet potato friesโ€ฆ. need to cut down on the fats we ingestโ€ฆ 

 

lol.. 

 

 


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2654 replies
  • November 23, 2022

Wow, another awesome workaround @andrew_videoask! ๐Ÿ˜Ž