Skip to content
šŸ“® Dialogflow + Sendgrid = AI Mailbox
Python Dockerfile
Branch: master
Clone or download
Latest commit 38de440 Jan 23, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Intitial commit Jan 6, 2020
k8s Fixed k8s service Jan 6, 2020
.dockerignore Intitial commit Jan 6, 2020
.gitignore Gitignore Jan 6, 2020
Dockerfile
LICENSE
README.md
inbox.py Removed "powered by" Jan 23, 2020
requirements.txt Intitial commit Jan 6, 2020

README.md

Dialogflow Sendgrid

Mail your Dialogflow Agents with Sendgrid

For features and drawbacks, see the original repo

Schema

Setup

Preparation

  1. Connect your Agents to a Dialogflow Gateway implementation (more here)

  2. Make a SendGrid account

  3. Visit "Settings" > "Sender Authentication" and "Authenticate Your Domain":

  4. Verify your DNS records:

  5. Go to "API Keys" and generate API Key with full access to "Mail Send":

  6. Install Dialogflow Sendgrid (below) and add "Inbound Parse" entry in "Settings" with following options:

    • Receiving Domain: your domain
    • Destination URL: endpoint to Dialogflow Sendgrid
    • Check incoming emails for spam: up to you
    • POST the raw, full MIME message: yes (check)

Installation

Kubernetes

See k8s for examples

Manual

  1. Python should be installed on the target
  2. Install the requirements with pip install -r requirements.txt
  3. Run python inbox.py

Configuration

Environment Variable Description Value
INBOX_USER Sendgrid user apikey
INBOX_PASSWORD Sendgrid API Key -
INBOX_HOST SMTP and IMAP server hostname smtp.sendgrid.net
GATEWAY Dialogflow Gateway Implementation https://cloud.ushakov.co

Testing

Send a test mail to a agent in the following format: your-google-cloud-project-id@yourdomain

You canā€™t perform that action at this time.