This sample will show you to localize your emails using ChatGPT and mail merge templates.
- Python v3.x
You'll need the following values:
V3_API_KEY = ""
GRANT_ID = ""
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
$ pip3 install openai # OpenAI package
$ pip3 install python-dotenv # Environment variables
$ pip3 install Flask # Micro framework
$ pip3 install Flask-session # Sessions for Flask
Create a .csv file similar to this one:
Run the file localized_emails.py:
$ python3 localized_emails.py.py
NiceGUI will open up your browser on port 5000.
Visit our Nylas Python SDK documentation to learn more.