Clay Icon

Troubleshooting Claygent Web Research Prompt Errors and Solutions

ยท
ยท

Hello, I keep getting an "error" when I try to run a claygent web research prompt that uses a person's name from a found linkedin profile to see if they appear on a website. I have tried API keys for both GPT 4o and Anthropic Claude 3 Haiku Both keys are working and accounts operational. Here is the prompt: " Act as a commercial real estate ownership researcher. Verify if the person Correct First Name Correct Last Name appears on the company website Owner 1 Website . Research method: 1. Thoroughly review team-oriented sections on the website, such as "Team", "Leadership", "Who We Are" or "About Us" pages. 2. Conduct a Google search using the format: "[Person's Name] site:[insert website domain]". Output "Yes" if the person is found on the website, otherwise output "No". If the website is unavailable or inaccessible, return "Website not accessible". If the LinkedIn profile is invalid, return "LinkedIn profile not accessible". " Here is the Schema: " { "type": "object", "properties": { "result": { "type": "string", "enum": [ "Yes", "No" ], "description": "Indicates if the person from the LinkedIn profile was found on the company website." } }, "required": [ "result" ], "additionalProperties": false } " https://app.clay.com/workspaces/25609/workbooks/wb_EWYUT8DzYs5A/tables/t_EsxBGv29ANhP/views/gv_7VcXAEZnGXsz Thanks!

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Based on your prompt, there might be a few things to check to resolve the error:1. Make sure your prompt follows the best practices for Claygent: โ€ข Set clear context at the beginning โ€ข Provide specific step-by-step instructions โ€ข Specify the exact output format you want 2. Since you're using Claygent Neon, ensure your schema and output formatting align with the model's capabilities. Neon is designed for structured data extraction and requires proper formatting to work effectively. 3. Try simplifying your prompt structure while maintaining the essential elements: โ€ข The system context (commercial real estate researcher role) โ€ข The specific task instructions โ€ข The desired output formatIf you continue experiencing issues after making these adjustments, you may want to try using the Metaprompter feature to help generate an optimized version of your prompt. Sources: Prompt Engineering Crash Course [Clay 101] - Clay University Introducing Claygent Neon Prompt Engineering Crash Course [Limitless Research] - Clay University

  • 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 Bo (.
    Bo (.
    ยท
    ยท

    Hey, thanks for reaching out - This error (Cannot read properties of undefined) means that there were some issues in the JSON, so I've re-generated the JSON and it's all working perfectly now. Let me know if that's unblocking you - Happy New Year ๐Ÿ†

  • Avatar of Stephen S.
    Stephen S.
    ยท
    ยท

    Thanks Bo (.! That's really weird because I tried changing the JSON. Out of curiosity, do you know what was wrong with it, or did you just hit 'generate from prompt'?

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

    I only hit "generate from prompt" and it made it work directly :)

  • 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 Stephen S.! This thread was recently closed by our Support team. If you have a moment, please share your feedback: