{
  "role": "ai-sdr",
  "source": "https://aiinthewild.com/ai-employees/ai-sdr/",
  "note": "Tool definitions in JSON Schema. Wire each one to your own systems. Functions marked approval: true should only create drafts or requests for a person to approve.",
  "functions": [
    {
      "name": "search_crm",
      "description": "Find accounts, contacts and past activity in the CRM.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Company, person or keyword"
          },
          "object": {
            "type": "string",
            "description": "account, contact, lead or opportunity"
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "get_company_profile",
      "description": "Fetch public facts about a company: size, industry, recent news and hiring.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "Company website domain"
          }
        },
        "required": [
          "domain"
        ]
      }
    },
    {
      "name": "score_lead",
      "description": "Score a lead against the written ideal customer profile and return the reasons.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "lead_id": {
            "type": "string",
            "description": "CRM lead id"
          }
        },
        "required": [
          "lead_id"
        ]
      }
    },
    {
      "name": "draft_email",
      "description": "Create an email draft in the rep’s mailbox. Never sends.",
      "access": "write",
      "approval": true,
      "parameters": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "Recipient address"
          },
          "subject": {
            "type": "string",
            "description": "Subject line"
          },
          "body": {
            "type": "string",
            "description": "Plain text body"
          }
        },
        "required": [
          "to",
          "subject",
          "body"
        ]
      }
    },
    {
      "name": "log_activity",
      "description": "Add a note or task to a CRM record.",
      "access": "write",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "record_id": {
            "type": "string",
            "description": "CRM record id"
          },
          "note": {
            "type": "string",
            "description": "What happened and the next step"
          }
        },
        "required": [
          "record_id",
          "note"
        ]
      }
    }
  ]
}