The GaryVee Bot doesn't exist yet... Until now.

Published: Nov 19, 2020 by Jenno Vink

The story behind the Gary Vaynerchuk search engine and integrating it with google assistant

A few weeks ago I saw this video of Gary Veynerchuck:

I was a bit disappointed at the moment he said:

GaryVee Bot doesn’t exist yet…

In another (non published) hobby project, I created a google assistant skill which picks a random item from my todo list (weekmenu) and reads it to the used. Me and my girlfriends always like to plan all the evening meals on sunday for the whole week. Letting a smart home assistant decide what to eat, based on a list was quite fun to make.

Based on that I already had some experience creating simple google assistant skills, I saw this as a fun project to do.

Quick demo

Techniques used

For this Proof-Of-Concept, I gained experience using:

  • a micro-framework called Flask
  • ngrok for exposing my local flask app to the outer world.
  • fetching results from API calls using python

My POC works by simply extracting everything an user said after ‘ask gary vee’. So in case of the video, this was ‘how to get success in life?’. This value is used to make a call to this endpoint:

https://search.garyvaynerchuk.com/api/search?page=1&search_value=how%20to%20get%20success%20in%20life

Then the API results are fetched, and formatted into json:

  return {"fulfillmentMessages": [
    {
      "card": {
        "title": responseTitle,
        "subtitle": responseSubtitle,
        "imageUri": imageUrl,
        "buttons": [
          {
            "text": "click here to watch",
            "postback": youtubeUrl
          }
        ]
      }
    }

And there it is. I think that for a POC, it works pretty well. The next steps would be hosting this python script in a cloud environment such as Azure, adding error handling and publishing it to google

HobbyProject Flask Python GoogleAssistant

Latest Posts

Stepping up my dotnet game!
Stepping up my dotnet game!

Full course on design patterns

Convert your MIDI keyboard/pad into a resharper code navigator!
Starting a new chapter at Lijnco
Starting a new chapter at Lijnco

A little more than 2 years ago, I started working at vitas. During my time at vitas, I got the chance to work at 3 different companies and in the meantime get 5 certificates. The last company (Lijnco) now offered me a permanent position! I’m really exited and enjoy working for Lijnco. The thing that appeals to me the most is the diversity in the projects: every project is different and every project is a new oppertunity to do it a little better and a little more efficient. Besides that, the more projects we do, the bigger the chance that we can reuse code. That highly increases efficiency.