Hi Team,
I’m facing a very similar issue, but in my case it’s happening while using the Botsailor API (not HTTP API) to assign values to custom fields.
Here are my observations:
- Custom field value not reflecting correctly
After assigning a value via API, in the Live Chat it appears that the value is set, but in reality, it is not being used correctly in bot messages.
- Duplicate field creation (case-sensitive issue)
After deeper investigation, I found that instead of updating the existing custom field, the system is actually creating a new custom field with a slight variation in the name:
- Original field:
state - Newly created field:
State - Hidden field (not visible in dashboard)
The newly created field (State) is not visible anywhere in the Botsailor dashboard UI, which makes debugging very difficult.
- Confirmed via API response
When fetching subscriber details using the API, I can clearly see both fields exist simultaneously:
This indicates that the system is treating custom field names as case-sensitive, and instead of updating the existing field, it silently creates a new one.
Clarifications needed:
- Are custom field names intended to be case-sensitive?
- If yes, why does the system allow creation of duplicate fields with only case differences without showing them in the dashboard?
- If not, this seems like a bug in field matching/assignment logic.
- Also, how can we prevent auto-creation of unintended fields via API?