Giter VIP home page Giter VIP logo

draft_gmail_chatgpt's Introduction

draft_gmail_chatgpt

draft_gmail_chatgpt_example_x6.mp4

How to use

  • Create keys directory and params files.
$ mkdir keys
$ cd keys
$ vi params.yml
---
chatgpt_session_token: '<chatgpt session token>'
gmail_api_sender: '<gmail sender email address>'
  • You should download secret file from Gmail API and place it under keys directory.
    • client_secret_**********-g*****************.apps.googleusercontent.com.json
$ ls keys
client_id.json  params.yml
  • run.
$ python3 main.py '以下のEメールについて詳細な返信文を作成して下さい。'
Found an undraft email: {'id': '*********', 'threadId': '*********', 'body': 'ジェダイ株式会社\r\nルーク・スカイウォーカー様\r\n\r\n突然のメール失礼します。\r\n銀河帝国株式会社のダースベイダーと申します。\r\n\r\n現在弊社では、貴社の新製品「ライトセーバー」の導入を検討しております。\r\nそれに伴い、下記の内容について確認したいと存じます。\r\n\r\nライトセーバーの利用方法\r\nライトセーバーの概算お見積\r\n\r\n以上となります。\r\nお手数ですが、ご回答よろしくお願いいたします。\r\n\r\n銀河帝国株式会社\r\nダースベイダー\r\n', 'subject': 'ライトセーバーについて', 'from': '********* <*********@gmail.com>'}
Complete saving a draft email

draft_gmail_chatgpt's People

Contributors

shirokunet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.