DEV Community

AJAYKUMAR POREDDIVAR
AJAYKUMAR POREDDIVAR

Posted on

I built FollowUp Writer — Write follow-ups fast

Building FollowUp Writer: A Tool for Efficient Follow-ups

As a senior developer, I've often found myself in situations where I needed to write follow-up emails quickly, whether it was to clients, colleagues, or collaborators. I'd spend hours crafting the perfect email, only to realize I'd wasted valuable time that could've been spent on more pressing tasks. I knew I wasn't alone in this struggle, and that's when I decided to build FollowUp Writer.

The Problem

I recall a particularly frustrating experience where I had to send follow-up emails to a list of 20 clients. I spent an entire day writing and rewriting emails, trying to personalize each one while still conveying the same message. It was a tedious and time-consuming process that took away from my actual work. I realized that I needed a tool that could help me write follow-up emails efficiently, without sacrificing personalization. This experience sparked the idea for FollowUp Writer, a tool designed to simplify the process of writing follow-up emails.

What I Tried First

Before building FollowUp Writer, I tried using existing tools like email templates and automation software. However, I found that these tools were either too rigid or too complex for my needs. They didn't allow for the level of personalization I required, and often resulted in emails that felt impersonal or robotic. I needed a tool that could understand the context of my emails and suggest relevant follow-ups.

How I Built It

FollowUp Writer is built using React, Groq, and Vercel, with Stripe handling payments. I chose these technologies because they allowed me to build a fast, scalable, and secure application. One of the key features of FollowUp Writer is its ability to suggest follow-up emails based on the context of the original email. This is achieved using a combination of natural language processing (NLP) and machine learning algorithms. Here's an example of how I implemented this feature using Groq:

import { groq } from 'groq';

const followUpQuery = groq`
  *[_type == "followUp" && originalEmail == $originalEmail] {
    _id,
    suggestion,
    context
  }
`;

const FollowUpSuggestions = ({ originalEmail }) => {
  const [suggestions, setSuggestions] = useState([]);

  useEffect(() => {
    const fetchSuggestions = async () => {
      const response = await fetch('/api/followUp', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ originalEmail }),
      });
      const data = await response.json();
      setSuggestions(data);
    };
    fetchSuggestions();
  }, [originalEmail]);

  return (
    <ul>
      {suggestions.map((suggestion) => (
        <li key={suggestion._id}>{suggestion.suggestion}</li>
      ))}
    </ul>
  );
};
Enter fullscreen mode Exit fullscreen mode

This code snippet shows how I used Groq to query the database for follow-up suggestions based on the original email. The followUpQuery function takes the original email as a parameter and returns a list of suggested follow-up emails.

What I Learned

One surprising insight I gained from building FollowUp Writer was that users are willing to pay for a tool that saves them time and effort, even if it's not a revolutionary concept. I initially thought that users would be hesitant to pay for a follow-up email tool, but it turns out that many people are willing to pay for a solution that simplifies their workflow. This realization has helped me refine my pricing strategy and focus on providing value to my users.

Try It Free

If you're struggling to write follow-up emails efficiently, I invite you to try FollowUp Writer for free: https://followup-writer-tool-9dm58rpie-sweths-projects-68683994.vercel.app. With its intuitive interface and powerful suggestion engine, FollowUp Writer can help you save time and effort, and focus on what matters most – your work.

Top comments (0)