Clay Icon

OpenAI Integration for Conditional Message Drafting Issues

Β·
Β·

Anyone using an openAI integration to draft messages? I'm drafting messages conditionally (IE: If XYZ is "NA" then use this script instead"), but I'm running into an issue where it's returning the wrong script version. I've followed all the prompting guidelines and used crystal clear definitions and references to each field to ensure nothing is misinterpreted. Anyone run into this?

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    There could be a few reasons why your OpenAI integration is returning the wrong script version when drafting messages conditionally. Here are some potential causes and solutions: 1. Model selection: Different AI models process prompts slightly differently. Try experimenting with other models to see if that resolves the issue. 2. System prompt: Ensure your system prompt clearly defines the AI's role and how it should approach conditional logic. 3. Prompt structure: Review your conditional snippets and ensure they're using the correct syntax for logical and comparison operators. 4. JSON formatting: If you're using JSON mode, make sure your prompt clearly specifies the desired properties and includes the word "json". To help troubleshoot further, could you please copy and paste the JSON you're using into the chat? This will allow us to examine your setup more closely and provide more specific guidance.

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    This thread was picked up by our in-app web widget and will no longer sync to Slack. If you are the original poster, you can continue this conversation by logging into https://app.clay.com and clicking "Support" in the sidebar. If you're not the original poster and require help from support, please post in 02 Support.

  • Avatar of Summiya B.
    Summiya B.
    Β·
    Β·

    Share short video of your prompt and it's results .