Automation Lab 2024-03-08

AI Email Ghost Writer: Draft Replies Faster

Estimated Time
10 MIN
Environment
Python 3.x, OpenAI API

Writing "Thank you for the meeting..." for the 100th time? Let's automate it. This tool takes your rough notes and turns them into a polite, professional email.

import openai

def draft_email(notes):
    prompt = f"Write a professional email based on these notes: {notes}"
    response = openai.ChatCompletion.create(
        model="gpt-3.5-turbo",
        messages=[{"role": "user", "content": prompt}]
    )
    return response.choices[0].message.content

print(draft_email("Meeting at 2pm, thanks for the data, send report by Friday"))

Download Full Automation Pack

Get all source codes, advanced configurations, and exclusive troubleshooting guides.

FREE DOWNLOAD

Secure Verification Required