Claude/GPT new line outputs for HTML email


Hey, how can I make sure that my output from claude ( or gpt for that matter) starts a new paragraph at the end of each line?

Also, how can I add my signature to my emails?

You can use the Tools: Text Parser module to replace newlines with the HTML tags </p><p>, then add <p> at the start of the output, and </p> at the end of the output.

Screenshot_2023-10-01_183754

Original string:

Screenshot_2023-10-01_184844

Output, HTML:

4 Likes

Use function. replace(your string ;\n;
) and put this under

<\p>

1 Like

I’m sorry but I still don’t understand how to do it. can you show me more detailed screenshots? I’m still VERY new to make :confused:

Welcome to the Make community!

To be able to provide more detailed screenshots,

1.

Could you export the scenario blueprint file to allow others to replicate the issue. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826

Uploading it here will look like this:

blueprint.json (12.3 KB)

2.

If possible, could you also please provide the input/output bundles of the modules by running the scenario, then clicking the bubble on the top-right of each module, taking screenshots of, and copying the contents into this discussion thread:

Screenshot_2023-08-29_100800

This will allow others to better assist you. Thanks!

2 Likes

Okok, here you go!

blueprint (1).json (23.1 KB)

Output bundles:
[
{
“completion”: " Here is one version of the LinkedIn post generated from the template and information provided:\n\n2 years ago I was struggling to raise funding for my startup idea. I spent weeks reaching out to hundreds of investors but no one believed in my vision. I was ready to give up. But then, something changed - I decided I needed to take control and not give up on my dream. I kept pushing and reaching out to more investors. Finally, one angel investor saw potential in my idea and decided to invest $250K. \n\nA year ago, things started coming together. I was able to hire an amazing engineer to help build out my project. We started gaining traction and I was featured on TechCrunch for my work. I started getting recognition from others in the industry. Most importantly, I finally made my parents proud by pursuing my entrepreneurial goals.\n\nNow, I have a successful startup with a growing team. Each day we move closer to building the product I originally envisioned. I’m proud of how far we’ve come. These days, I have:\n\n- A thriving business helping others \n- Financial independence to focus fully on our vision\n- International recognition for our innovations \n- Freedom to work on ideas I’m passionate about\n\nThese things I could only dream of two years ago when I was struggling to get our company off the ground. My advice to others is to never give up on your goals, even during the tough times. With persistence and determination, you can achieve great things.\n\nHere are two additional options for the LinkedIn post:\n\nOption 1:\n\n2 years ago, raising funding for my startup seemed impossible. Investor after investor passed on my idea, and I started losing hope that my vision would ever become reality. But I wasn’t ready to give up on my dream just yet. I doubled down on networking and connecting with as many potential backers as I could. After countless rejections, one angel took a chance and invested $250k. \n\nThat investment allowed me to hire an amazing developer and really get to work building out my product. A year later and I’ve grown my team, gained national media attention, and seen real growth for our young company. These days, I’m proud to say that I have:\n\n- A thriving business making an impact \n- Financial independence and flexibility to innovate\n- Widespread recognition as an entrepreneur to watch\n- Freedom to dedicate myself fully to this journey\n\nIt’s been an incredible two years of highs and lows. But my advice is to never lose sight of your goals, even in the toughest of times. With grit and perseverance, you can turn your dreams into reality.\n\nOption 2: \n\nTwo years ago, getting startup funding felt next to impossible. As an entrepreneur just starting out, every "no" from investors chipped away at my confidence. There were days I doubted if I’d ever get my business off the ground. But I wasn’t ready to give up on what I knew was an innovative solution. \n\nAfter countless investor pitches, I finally got a "yes" - an angel saw the potential and wrote a $250k check. That investment allowed me to hire key team members and really focus on product development. Fast forward to today, and I’m proud of what we’ve achieved. We’ve gained clients, media features, and strengthened our innovative platform. \n\nThese days, my company has:\n- A proven solution making an impact \n- Financial independence to fuel continued growth\n- International recognition and customers\n- Freedom to focus fully on our mission\n\nNever losing sight of my goals is what got me here. For any entrepreneurs facing challenges, my advice is to keep pushing - your dreams are worth fighting for.",
“stop_reason”: “stop_sequence”,
“model”: “claude-instant-1.2”,
“stop”: “\n\nHuman:”,
“log_id”: “21602e79f65a0f899872ceeb4d49524644e07126bcf7a83bd657f068fbe097bd”
}
]

Here you go:

Output:

2 Likes

blueprint (2).json (25.7 KB)
I followed everything you did and it still didn’t work :sob: