blob: 4754486624493abf95745d864013ac6db9b7f99c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Meeting Extractor
This is a simple script that extracts meeting details from an email. It uses the OpenAI API to extract the meeting details from the email content.
## Installation
1. Clone the repository
2. Install the dependencies
```
pip install openai
pip install pyyaml
```
3. Set the OpenAI API key in the `api-key.yaml` file with the following format:
```
openai:
api_key: ""
```
4. Run the script
## Open-ai API Key
You can get the OpenAI API key from [here](https://platform.openai.com/api-keys).
A valid API key starts with `sk-proj-`.
## Usage
1. Run the script
2. Enter the email content when prompted
3. The script will output the extracted meeting details with a format of YAML.
```
{
"meetings": [
{
"time": "2024-03-20 14:00 - 15:00",
"location": "Conference Room A",
"description": "Project progress discussion",
"title": "Project Update"
},
{
"time": "2024-03-22 10:30 - 11:30",
"location": "Virtual Meeting",
"description": "Sprint review meeting",
"title": "Sprint Review"
}
]
}
```
If no meetings are found, the script will output:
```
{
"meetings": null
}
```
|