AI agent: SMS segmentation in 140 characters
C
Claudia Chassé
When the communication channel is SMS, segment the AI agent's response into messages of up to 140 characters maximum. Cut text between two sentences or words, without cutting a word. To adapt to UTF-16 encoding, which reduces the maximum length of a segment and ensures that the response is not interspersed