Skip to main content
Mythos

How to Build Custom AI Agents in 📝Clay refers to the structured approach for designing, testing, and refining AI-powered agents—called 📝Claygent (Clay)s—within the Clay platform. The process begins by clarifying the objective of the prompt, such as extracting insights from email addresses for sales or marketing. It continues by exploring all possible outcomes, often using tools like ChatGPT or Perplexity to generate ideas. Next, steps are broken down: leveraging Clay’s Meta Prompter or external LLMs to create a draft, testing and spot-checking outputs, and iteratively improving the prompt through further dialogue with AI. Organizing the workflow, saving templates to a prompt library, and fine-tuning parameters like model selection and creativity level are integral to building reusable, effective Claygents. This method aligns with broader practices discussed in 📝Prompt Engineering for Workflow Automation, where iterative refinement and outcome-driven design are emphasized.

Guide

  • Clarify the Objective
    • Define what you want the agent (prompt) to achieve.
    • Example: Infer insights from an email address for sales/marketing.
  • Explore Possibilities
    • Consider all potential outcomes and use cases.
  • Use AI (ChatGPT, Perplexity) to brainstorm what insights can be derived.
  • Ask questions like, “What am I missing?” to broaden your view.
  • Map the Steps
  • Outline what the agent needs to do to reach your objective.
  • Ask AI for suggested steps or use Clay’s Meta Prompter to get started.
  • Identify Considerations
  • Note any constraints, guidelines, or additional insights the agent might need.
  • For complex prompts, clarify boundaries or rules.
  • Build the Prompt
  • Use Clay’s Meta Prompter or write/edit prompts in ChatGPT or Claude.
  • Incorporate your mapped steps and considerations.
  • Test & Spot Check
  • Run the agent and review outputs.
  • Check for errors, logic gaps, or unnecessary tasks.
  • Use “steps” and “reasoning” as breadcrumbs for troubleshooting.
  • Iterate with AI
  • If results aren’t ideal, re-engage with the AI.
  • Ask for improvements or additional outputs.
  • Experiment with style, tone, and variations to find the best fit.
  • Organize Outputs
  • Create collapsible templates in Clay for clarity.
  • Use column types (like “Select”) to streamline your data tables.
  • Gather and visualize statistics as needed.
  • Save to Prompt Library
  • Store your final, tested prompt as a reusable template.
  • Make it accessible for future projects and team members.
  • Fine-Tune Further
  • Choose the right AI model for your use case and complexity.
  • Define output structure and creativity level.
  • Upload relevant documents for more context if needed.
  • Reference Resources
  • Check out Claygent Prompt Library for inspiration and reusable examples.
  • Review guides on how temperature impacts AI copy for advanced tuning.

---

Tip: Each step can be revisited and refined. The process is iterative and benefits from ongoing experimentation and feedback, as emphasized in 📝Prompt Engineering for Workflow Automation.

Contexts

Created with 💜 by One Inc | Copyright 2026