Clay Icon

Request for Flexible Variable Handling in OpenAI API

·
·

If I were to prompt this in 4o mini it would still run if a field were missing. I’ve noticed with Clay’s OpenAI API (I think this is the case with other LLM’s also), that if we are missing 1 out of a few variables it is not going to run the row. For example if I have a ton of variables per screenshot below, the row won’t run if the “industry” variable is missing. There should be an option to run even if not all variables are present. In my case the industry variable doesn’t make a HUGE difference but when it is there I would like to consider it

  • Avatar of Channeled
    Channeled
    APP
    ·
    ·

    To run rows even when some variables are missing, you can use conditional runs in Clay. Here's how: 1. Open the Prompt Editor for your OpenAI API configuration. 2. Look for the "Required to Run" toggle next to each field. 3. Disable this toggle for variables that aren't crucial, like "industry". 4. Use AI formulas to create custom conditional run criteria. This setup ensures the enrichment runs even if non-essential fields are empty. For more control, you can create a formula that only skips rows when truly critical data is missing. If you need further assistance, please request human help by clicking "Talk to a person" in this chat.

  • Avatar of kushagra
    kushagra
    ·
    ·

    turning off the blue toggle for variables that are not always present should fix it

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    where is that?

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    Oh lol

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    found it

  • Avatar of kushagra
    kushagra
    ·
    ·

    haha yeah

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    i’ve been using Clay for 2.5 years

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    and never knew this was a thing

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    lol

  • Avatar of kushagra
    kushagra
    ·
    ·

    i ran into a similar problem and found it last year 😄

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    thank u sir!

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    connect w me on linkedin: linkedin.com/in/pierrepatrouilard

  • Avatar of Pierre P.
    Pierre P.
    ·
    ·

    always looking for Clay talent

  • Avatar of kushagra
    kushagra
    ·
    ·

    awesome, see you there. 🙂

  • Avatar of Tanvi R.
    Tanvi R.
    ·
    ·

    Hey Pierre, thanks for reaching out and appreciate you jumping in Kushagra! You're right that turning off the blue "required to run" toggle will help make your prompt run even when certain inputs are missing. Here's how you can do this: Let me know if you have any other questions!

  • Avatar of Channeled
    Channeled
    APP
    ·
    ·
  • Avatar of Channeled
    Channeled
    APP
    ·
    ·