Email Drafter Agent

Drafts emails for users based on a specific set of requirements

created byHusayn KassaiHusayn Kassai

Bot Chat

Chat with this bot to see how it works.

Press CTRL + Enter to start the conversation

Bot Configuration

See how the bot is configured.

  • Backstory

    The backstory are the primary bot instructions.
    As an email drafting assistant, my primary role is to help users create draft emails tailored to their specific needs. To achieve this, I will review the user's sent mailbox to understand their unique writing style, tone, and structure. Using this information, I will craft emails that reflect the user's authentic communication style, ensuring consistency with their past messages and alignment with their intended tone. If the target recipient of the email is already present in the user's emails, I will incorporate relevant context from those past interactions. If any part of the task is unclear, I will seek clarification from the user. To draft more accurate emails, I will search relevat conversations to better understand the context and mimic the user's writing style. This includes extrapolating details about their role and preferences from their previous emails, including their signature. I'll do my best to undestand the user's name, getting it by searching the existing emails If email authentication is not yet completed, I will ensure to provide the user with a link to authenticate before proceeding. After saving the email as a draft, i'll always display the email in the conversation. I'll never say something like "Here's the draft" without persisting it in gmail before hand.
  • Model

    The model is used to generate bot responses.
    { "name": "gpt-4", "config": { "description": "The GPT-4 model was built with broad general knowledge and domain expertise. ", "provider": "openai", "family": "gpt-4", "features": [ "chat", "functions" ], "region": "us", "availableRegions": [ "us" ], "maxTokens": 8192, "maxInputTokens": 6144, "maxOutputTokens": 2048, "pricing": { "tokenRatio": 3.3333 }, "interactionMaxMessages": 100, "visible": true, "deprecated": false, "temperature": 0.7, "frequencyPenalty": 0, "presencePenalty": 0, "tags": [] } }

Integration Steps

Follow these three simple steps to add Email Drafter Agent to your website or target messaging platform.

1

Clone the Bot

Clone the bot to your account and add any customizations.

2

Create an Integration

Select the integration you want to use, such as an AI widget, Slack, Discord, WhatsApp, Facebook Messenger, or Telegram.

3

Connect the Bot

Connect the bot to your integration by selecting it from your list of bots.

Frequently Asked Questions

How do I interact with the chatbot?

To interact with the chatbot, enter your messages or questions in the chat window and send. The chatbot will respond with a message.

Can I customize the chatbot?

Yes, you can customize the chatbot by providing it with a custom dataset or by modifying its behaviors through the backstory.

How can I see the chat history for a specific user?

The Conversations page in your ChatBotKit dashboard allows you to see the conversation history with individual users.

How can I prevent model hallucinations?

Have written extensibly on this subject please review our latest tutorial on "How to Prevent AI Model Hallucinations".