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)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
- Test with sample data - Use real user information to verify fields populate correctly
- Check field names - Ensure no spaces or special characters
- Verify data accuracy - Confirm the right information appears in the right places
- 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
- Check for spaces in field name
- Verify field name matches exactly
- Confirm data exists in database
- Check system configuration
Problem: Wrong Data Appearing
Possible Causes:- Field name too similar to another field
- Database mapping error
- Data corruption
- Use unique, descriptive field names
- Verify database field mapping
- Check data integrity
Problem: Field Causes Error
Possible Causes:- Invalid characters in field name
- System doesnโt recognize field
- Syntax error in prompt
- Remove special characters
- Use only letters, numbers, and underscores
- 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:- Review your current fields - Apply these best practices to existing custom fields
- Plan new implementations - Use proper naming conventions from the start
- Test thoroughly - Verify everything works before going live
- Train your team - Ensure everyone follows the same standards
- 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.