Clay Icon

Best Ways to Add AI Snippets Conditionally in Emails

ยท
ยท

What's the best way to conditionally add an AI snippet to an email? Don't think you can add an "AI Snippet" within a "Conditional Snippet"

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Since AI snippets work best when generating small chunks of text at a time, here's the recommended approach:1. First, create your AI snippets separately and save them as individual text snippets. 2. Then, use these pre-generated text snippets within your conditional snippets by: โ€ข Opening the conditional snippet panel with "/" โ€ข Setting up your conditions โ€ข Pasting the pre-generated AI content in the "If" or "Else" sections as neededThis approach maintains tight control over the AI-generated content while still allowing you to use conditional logic in your messages. It also helps avoid potential errors that could occur when generating longer content. Sources: Intro to AI Snippets (Copywriting) [Clay 101] - Clay University Message drafting overview | Clay University

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    Better way to do this is to tell the AI snippet to return an empty string based on a condition just FYI

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Thank you for the feedback. Could you clarify if this suggestion fully addresses your concern or if you need further assistance?

  • Avatar of Bo (.
    Bo (.
    ยท
    ยท

    Hey, thanks for reaching out, Matthew - Just to confirm, you've found a way to fix this, right?

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    Yes โ€” thanks

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Hi Mathew I.! This thread was recently closed by our Support team. If you have a moment, please share your feedback: