0
0
AI for Everyoneknowledge~30 mins

Using AI to draft emails and messages in AI for Everyone - Mini Project: Build & Apply

Choose your learning style9 modes available
Using AI to draft emails and messages
📖 Scenario: You work in an office where you often need to send emails and messages quickly. You want to learn how AI tools can help you draft these communications efficiently and politely.
🎯 Goal: Build a simple guide that shows how to prepare an email draft using AI, including setting up the message details, choosing the tone, generating the draft, and reviewing the final message.
📋 What You'll Learn
Create variables to hold email details like recipient, subject, and main points
Add a variable to set the tone of the email (e.g., formal, friendly)
Use a simple AI draft function to combine details and tone into a message
Add a final step to review and confirm the drafted message
💡 Why This Matters
🌍 Real World
Using AI to draft emails saves time and helps communicate clearly and politely in professional settings.
💼 Career
Many jobs require quick, effective communication. Knowing how to use AI tools to draft messages is a valuable skill.
Progress0 / 4 steps
1
Set up the email details
Create variables called recipient, subject, and main_points with these exact values: recipient = "team@example.com", subject = "Project Update", and main_points = ["Completed initial research", "Started development", "Next meeting on Friday"].
AI for Everyone
Hint

Use simple variable assignments with the exact names and values given.

2
Add the tone configuration
Create a variable called tone and set it to the string "friendly" to specify the style of the email.
AI for Everyone
Hint

Just assign the string "friendly" to the variable tone.

3
Generate the AI draft message
Create a function called generate_draft that takes recipient, subject, main_points, and tone as parameters and returns a string combining these details into a simple email draft. Then create a variable called draft_message by calling generate_draft with the existing variables.
AI for Everyone
Hint

Define a function that formats the email text and call it with the variables to get the draft.

4
Review and finalize the draft
Create a variable called final_message and set it equal to draft_message. This represents the reviewed and ready-to-send email draft.
AI for Everyone
Hint

Just assign the draft message to a new variable called final_message.