I want to use AI enrichment to choose the best person from a list. How to pass a list to the prompt? When i choose a list all responses have errors saying "All provided lists contained only placeholders ([object Object]) with no actual person data. Selection cannot occur without access to each potential contact's name and job title for relevance evaluation.". But each item in the list is one person with all details. Why AI cant see it?
The [object Object] error means your AI prompt is referencing the entire JSON object instead of specific data fields within it.
To fix this:
Check your column reference - Instead of referencing the whole list column, specify the exact fields you need
Use proper syntax - For string values in prompts, wrap dynamic column references in quotes: "name": "/Name Column" [1]
Reference specific keys - If your list contains JSON objects, update your formula to target specific keys like .name or .job_title rather than the entire object
Example variable setup:
{PersonName} = /List Column.name
{JobTitle} = /List Column.job_title[2]
Can you copy and paste your current JSON/prompt setup so I can help troubleshoot the specific formatting issue?
If you still need help resolving the JSON formatting issue with your AI prompt, I’m here to assist. Would you like to share more details about your current JSON or prompt setup so we can troubleshoot further?
Please check your json body
Could you copy and paste your JSON body into the chat? This will help me identify the specific formatting issue causing the error.
Common JSON issues include missing quotes around keys, trailing commas, or incorrect syntax that prevents proper parsing. [1]
where can i find json body?
If you still need help with the JSON formatting issue, I’m here to assist. Would you like to share your JSON body here so we can troubleshoot it together?
The JSON body is in your HTTP API enrichment configuration. To find it:
Open your Clay table
Click on the HTTP API enrichment column
Look for the Body section in the enrichment panel [1]
This is where you configure the JSON data being sent. Since you're having JSON formatting issues, please copy and paste your current JSON body from that section so I can help troubleshoot the specific formatting problem. [2]
Is that what you were looking for?
When you write the prompt. Scroll down there is json clock to json body it will automatically give you then you tag or put the data of person there. So json body will easily find that
I am using "Use AI" enrichment, not HTTP API
Got it! For "Use AI" enrichments, the [object Object] error happens when you reference entire list objects instead of specific fields.
When referencing your list in the AI prompt:
Don't reference the whole list column - this gives you [object Object]
Reference specific properties like /List Column.name or /List Column.job_title [1]
You can also select "Insert all items" to reference the entire list, then extract specific properties like first_name from each item.
Can you copy and paste your current AI prompt setup so I can help fix the specific formatting?
But i cant reference properties because lists contains multiple items. What do you mean by "Insert all items"?
"Insert all items" means selecting the entire list to reference all people at once in your AI prompt. [1]
When you click on your list column in the AI enrichment setup, you'll see options like:
Insert all items (this gives you the complete list)
Individual items (index 0, 1, 2, etc.) [2]
Choose "Insert all items" to pass the full list to your AI prompt. The AI can then evaluate all people simultaneously and select the best match based on your criteria.
Did that answer your question?
yeah, thats what i did before. I inserted all items as a list.
