Clay Icon

Checking Column Matches Against Provided List: Logic & Output Needed

ยท
ยท

Im trying to get Clay to check info in a column against a list provided and tell me if there is a match. Using GPT (as no need to search wev) read the info in column accurately, as some names are similar, but not the same eg. Name in column-Clay Name on provided list-Clay Agency =no match Name in column - Clay Agency Name on provided list - Clay Agency =match Also, I only want it to output the name and a yes or no, not a full paragraph lol. Any ideas?

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    You can accomplish this in two ways: 1. Using string comparison operators: โ€ข Use the "Equal To (==)" operator to check for exact matches between your column and list values โ€ข This ensures that similar names (like "Clay" vs "Clay Agency") are treated as different 2. Using the Calculate Similarity integration: โ€ข This will give you a similarity score between two text inputs โ€ข You can then set a threshold for what constitutes a matchFor the cleanest results, first use the Normalize and Deduplicate integration to standardize your data formats before comparison. This helps ensure consistent matching. Sources: Comparison operators | Documentation | Clay University Calculate Similarity of Text with Clay Normalize and Deduplicate a List with Clay

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Looks like you're still looking for help. We're escalating this over to our support team and someone should be in touch soon. In the meantime, feel free to include any other information that may be helpful in solving your issue!

  • Avatar of kushagra
    kushagra
    ยท
    ยท

    using a formula column is better for this usecase than AI also, if you have to use AI use the json output - will take care of getting reliable results like yes/no than an entire para

  • Avatar of TJ G.
    TJ G.
    ยท
    ยท

    Okkkk, I will try that. Thanks

  • Avatar of Daniela D.
    Daniela D.
    ยท
    ยท

    Thanks for jumping in Kushagra! Hey TJ! Let us know if you run into any issues. To add to Kushagra's suggestion, the "define outputs" section is very useful for refining responses and getting the model to return its response in a format that matches your criteria. I made a quick recording showing both options below. Let me know if you have any questions! https://downloads.intercomcdn.com/i/o/w28k1kwz/1353224358/d01f9bdab1b06171d74151bfc084/CleanShot+2025-01-27+at+14_32_25.gif?expires=1737986400&signature=afedb8cba5d56ecc6c4545c28d4b8f8732091b76f9f6dd84309e40a5091e61ec&req=dSMiFct8mYJaUfMW1HO4zeapVYJRRwUiLDE0y4IheKH8UKQgMVR4UBwN0tbY%0Apnip%0A

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Hey there - just wanted to check in here to see if you needed anything else! Feel free to reply back here if you do.

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    We haven't heard back from you in a bit, so we're going to go ahead and close things out here - feel free to let us know if you still need something!

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

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

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Thank you so much for sharing your feedback TJ G.!