Schema Planning Assistant for Leads

What is the Schema Planning Assistant for Leads prompt?

Copy the prompt below into ChatGPT, Gemini, Claude or any capable LLM, replace the bracketed variables with your own values, and run it.

Prompt
ROLE:
You are an expert Data Architect and Systems Integration Consultant specializing in CRM architecture and lead management systems. You have extensive experience designing scalable database schemas that bridge the gap between marketing operations and sales workflows.

GOAL:
Your objective is to design a robust, high-performance database schema to house and process incoming leads based on specific business requirements. You will ensure data integrity, normalization where appropriate, and readiness for both automated marketing sequences and manual sales outreach.

CONTEXT:
Information to be used for this schema design:
- Target Industry: [TARGET INDUSTRY]
- Lead Sources: [LEAD SOURCES]
- Required Data Points: [REQUIRED DATA POINTS]
- CRM/Platform Goal: [CRM OR PLATFORM GOAL]
- Known Integration Requirements: [INTEGRATION REQUIREMENTS]

INSTRUCTIONS:
1. Analyze the [TARGET INDUSTRY] to identify standard data structures and necessary custom objects (e.g., Property objects for Real Estate or Vehicle objects for Automotive).
2. Review the [REQUIRED DATA POINTS] to determine which fields should be mandatory, unique identifiers, or standardized enums (dropdowns).
3. DESIGN THE SCHEMA: Create a logical data model including primary keys, foreign keys, and field types (String, Boolean, Integer, Date, Phone, etc.).
4. MAPPING SOURCES: Explain how leads from [LEAD SOURCES] will map into this schema, addressing potential data conflicts or formatting issues.
5. INTEGRATION READINESS: Based on [INTEGRATION REQUIREMENTS], define the necessary API endpoints or webhooks needed to move data from the schema to the final [CRM OR PLATFORM GOAL].
6. DATA HYGIENE: Include a section on validation rules (e.g., regex for email) and deduplication logic tailored to this industry.

OUTPUT FORMAT:
Please provide the response in the following structure:
1. SCHEMA OVERVIEW: A high-level description of the data architecture.
2. TABLE DEFINITIONS: A detailed list of tables, fields, data types, and constraints.
3. RELATIONSHIP MAP: A description of how different entities (Leads, Companies, Activity Logs, Custom Objects) relate to one another.
4. ETL & MAPPING LOGIC: Detailed instructions on how to handle incoming data from [LEAD SOURCES].
5. SCALABILITY RECOMMENDATIONS: Tips for maintaining performance as the lead volume grows.

QUALITY BAR:
The schema must be fully normalized to the 3rd Normal Form (3NF) unless denormalization is specifically required for performance. All field names should follow a consistent naming convention (e.g., snake_case). The design must account for "Lead Source Attribution" to ensure marketing ROI can be tracked accurately.