{"id":15387867,"url":"https://github.com/mishushakov/dialogflow-inbox","last_synced_at":"2025-04-15T20:20:20.789Z","repository":{"id":97807789,"uuid":"192791914","full_name":"mishushakov/dialogflow-inbox","owner":"mishushakov","description":"📨 AI Mailbox, powered by Dialogflow","archived":false,"fork":false,"pushed_at":"2020-04-18T12:24:32.000Z","size":50,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T18:45:50.228Z","etag":null,"topics":["cronjob","dialogflow","dialogflow-v2","email","mailserver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mishushakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://paypal.me/ushakovhq"}},"created_at":"2019-06-19T19:25:25.000Z","updated_at":"2024-08-30T09:12:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"7308800d-b09f-461a-9678-a3ca5d322443","html_url":"https://github.com/mishushakov/dialogflow-inbox","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.30434782608695654","last_synced_commit":"c8407b03b47a62008f3413bea2cdf17cffc6f804"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishushakov%2Fdialogflow-inbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishushakov%2Fdialogflow-inbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishushakov%2Fdialogflow-inbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishushakov%2Fdialogflow-inbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mishushakov","download_url":"https://codeload.github.com/mishushakov/dialogflow-inbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145749,"owners_count":21220029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cronjob","dialogflow","dialogflow-v2","email","mailserver"],"created_at":"2024-10-01T14:54:51.274Z","updated_at":"2025-04-15T20:20:20.761Z","avatar_url":"https://github.com/mishushakov.png","language":"Python","funding_links":["https://paypal.me/ushakovhq"],"categories":[],"sub_categories":[],"readme":"# Dialogflow Inbox\n\n![](https://i.imgur.com/8yoLPGI.png)\n\nDialogflow Inbox operates Dialogflow Agents inside a mail server\n\n## Schema\n\n![](https://i.imgur.com/LliWtRV.png)\n\n## Features and Drawbacks\n\n- Automatic language detection\n- Session, thread detection\n- Reply recognition\n- No HTML parsing\n- No component rendering (only text is sent)\n\n## Setup\n\n### Preparation\n\n1. Connect your Agents to a Dialogflow Gateway implementation ([more here](https://github.com/mishushakov/dialogflow-gateway-docs))\n2. Install SMTP and IMAP server on your machine, i recommend [docker-mailserver](https://github.com/tomav/docker-mailserver)\n3. Point DNS MX record to the SMTP and IMAP server\n4. Create a user, which will recieve E-Mails for your agent\n5. Assign alias: your-google-cloud-project-id@yourdomain or *@yourdomain (if you have multiple Agents) to the user\n\n### Installation\n\n#### Kubernetes\n\nSee [k8s](k8s) for examples\n\n#### Manual\n\n1. Confirm your Mailserver operates correctly\n2. Clone the repository\n3. Install Python and cron\n4. Install the requirements with `pip install -r requirements.txt`\n5. Configure the environment variables (below)\n6. Send a test E-Mail to your-google-cloud-project-id@yourdomain and run the [inbox.py](inbox.py) script with `python`\n7. Setup a cronjob to run it automatically over a interval\n\n### Configuration\n\n| Environment Variable | Description                                                   | Value                        |\n|----------------------|---------------------------------------------------------------|------------------------------|\n| INBOX_USER           | E-mail user                                                   | -                            |\n| INBOX_PASSWORD       | E-mail user's password                                        | -                            |\n| INBOX_HOST           | SMTP and IMAP server hostname                                 | -                            |\n| FALLBACK_LANG        | Fallback language if language detection fails                 | en                           |\n| ENDPOINT             | Dialogflow Gateway Endpoint. `*` for wildcard                 | https://*.core.ushaflow.io   |\n| CATCHALL             | Catch-all address                                             | -                            |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishushakov%2Fdialogflow-inbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmishushakov%2Fdialogflow-inbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishushakov%2Fdialogflow-inbox/lists"}