Skip to main content
What youโ€™ll learn: Essential rules, naming conventions, and best practices to make your custom fields work perfectly every time.

The Golden Rules of Custom Fields

Rule 1: No Spaces Ever ๐Ÿšจ

This is the most important rule: Custom field names cannot contain spaces.

Rule 2: Use Underscores for Multiple Words

When you need multiple words, connect them with underscores:

Rule 3: Be Consistent with Naming

Choose a naming style and stick to it throughout your system: PascalCase (Recommended)
Important: Pick this style and use it consistently. Donโ€™t mix different naming conventions in the same system.

Field Naming Guidelines

โœ… Good Field Names

  • Clear and descriptive: {AccountNumber} instead of {Acc}
  • Consistent format: All fields follow the same pattern
  • Easy to understand: {PaymentAmount} instead of {PayAmt}
  • Professional: {CustomerName} instead of {CustName}

โŒ Avoid These Naming Patterns

  • Abbreviations: {AccNum} (unclear)
  • Mixed formats: {FirstName} and {last_name} (inconsistent)
  • Too long: {CustomerAccountPaymentAmountDueDate} (confusing)
  • Special characters: {Account#} or {Amount$} (causes errors)

Common Custom Field Categories

Personal Information Fields

Contact Information Fields

Account and Financial Fields

Time and Date Fields

Product and Service Fields

Advanced Custom Field Techniques

Combining Multiple Fields

You can use multiple custom fields in the same sentence for rich, personalized conversations:

Conditional Custom Fields

Some systems support conditional logic with custom fields:
Note: Conditional custom fields require advanced system support. Check with your platform provider for availability.

Testing Your Custom Fields

Before Going Live

  1. Test with sample data - Use real user information to verify fields populate correctly
  2. Check field names - Ensure no spaces or special characters
  3. Verify data accuracy - Confirm the right information appears in the right places
  4. Test conversation flow - Make sure the personalized message sounds natural

Common Testing Scenarios

Troubleshooting Common Issues

Problem: Field Not Populating

Possible Causes:
  • Field name has spaces
  • Field name doesnโ€™t match database
  • Data is missing for that user
  • System configuration error
Solutions:
  1. Check for spaces in field name
  2. Verify field name matches exactly
  3. Confirm data exists in database
  4. Check system configuration

Problem: Wrong Data Appearing

Possible Causes:
  • Field name too similar to another field
  • Database mapping error
  • Data corruption
Solutions:
  1. Use unique, descriptive field names
  2. Verify database field mapping
  3. Check data integrity

Problem: Field Causes Error

Possible Causes:
  • Invalid characters in field name
  • System doesnโ€™t recognize field
  • Syntax error in prompt
Solutions:
  1. Remove special characters
  2. Use only letters, numbers, and underscores
  3. Check prompt syntax

Best Practices Checklist

Use this checklist to ensure your custom fields work perfectly:
  • Field names have no spaces - Use underscores instead
  • Naming is consistent - Same format throughout system
  • Names are descriptive - Clear what each field contains
  • Testing completed - Verified with real data
  • Error handling - Graceful fallbacks for missing data
  • Documentation updated - Team knows how to use fields
  • Backup plan - What happens if fields fail

Performance Considerations

Field Loading Speed

  • Keep field names short - Long names can slow processing
  • Limit field count - Too many fields may impact performance
  • Cache frequently used data - Reduce database lookups

Data Accuracy

  • Real-time updates - Ensure data is current
  • Validation rules - Check data quality before using
  • Fallback values - Provide defaults for missing data

Security and Privacy

Data Protection

  • Sensitive information - Donโ€™t include passwords or SSNs in custom fields
  • Access control - Limit who can see custom field data
  • Audit logging - Track when custom fields are used

Compliance

  • GDPR considerations - Ensure user consent for personal data
  • Industry regulations - Follow financial, healthcare, or other specific rules
  • Data retention - Know how long to keep custom field data

Next Steps

Now that you understand custom field best practices:
  1. Review your current fields - Apply these best practices to existing custom fields
  2. Plan new implementations - Use proper naming conventions from the start
  3. Test thoroughly - Verify everything works before going live
  4. Train your team - Ensure everyone follows the same standards
  5. Monitor performance - Watch for any issues and optimize as needed
Ready to implement custom fields correctly? Following these best practices will ensure your custom fields work reliably, efficiently, and professionally. Start implementing them today to create more engaging and personalized AI conversations.

Need the basics? Check out our Custom Fields Introduction to understand the fundamentals before diving into these best practices.