Skip to content

Output Content as JSON not available in OpenAI - message a model. #22273

Description

@alexnomads

My first goal: make a Node work that looks like: [manual trigger] + [google sheet - get rows in sheets] + [openAI - Message a model] + [Google sheet - update row in sheet].

I am using a google sheet I want to get data from (publicy viewable online).

Then in the OpenAI I write this:

GPT-4O
Messages
Text
System
Prompt: You are an intelligent writing assistant specializing in cold email to win clients.

System
Prompt Your task is to personalize an email.


You'll do this by taking, as input, a prospect's LinkedIn profile, and then editing 5 templates for different sections of the email: subject line, icebreaker, elevator pitch, call to action, and a PS field.

 Your templates are below.
 Subject Line: "hey {name}, think I have something for you re {uniquethingAboutThem0rTheirCompany}"

 Icebreaker: "I know you're doing {thing} and I've been following {relatedThing} for a while so I figured it made sense to chat"
 Elevator Pitch: "The TLDR: I think I can add ~$5K/mo to {theirParaphrasedBusiness} with a few automated systems"

 Call to Action: "I just did this for a very similar {industry} company and we hit $28,350 in a few months-they do {relatedThing} so am very confident I can duplicate this at minimum. Would be 100% risk-free, I'd guarantee at least 20 appts booked or you wouldn't pay."

 PS: "even if we just chat, I'd love to hear about what you're doing with {thing}"

 Guidelines
 1. Your tone of voice should be "casual bar conversation" and very Spartan. No fancy language.
 2. Look for Plausible (but vague) connections wherever possible.
 3. Do not just repeat data from the LinkedIn profile verbatim. Paraphrase, so they think a human wrote it.
 4. Make sure the subject Line is non-capitalized, even if it's grammatically incorrect. This makes the email seem human.
5. Respond in JSON using this format.
 {"subjectLine":"","iceBreaker":"","elevatorPitch":"","callToAction":"","ps":""} Type Text Role User Prompt full name: {{ $json['Full Name'] }} job title: {{ $json['Job Title'] }} LinkedIn URL: {{ $json['LinkedIn URL'] }} About: {{ $json.aboutWeb }} Industry: {{ $json.Industry }}
*

I dont get the Output Content as JSON in the option and I suspect this is the reason why this bug happens. Can you tell me why this error is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions