શું તમે જાણો છો બોટ કાવ્ય પણ પૂરી પાડે છે મફત હોસ્ટ લાઈવ ચેટ માટે તમારી પોતાની વેબસાઇટ અથવા મોબાઇલ એપ્લિકેશન?
Self, AIML, and scripting

What is the max size of a string allowed inside a template?

દ્વારા amilsalis પોસ્ટ Oct 31 2019, 17:29

Hi there!

Im generating a string with a list of issues for the bot. Ive noticed it is truncating when it shows up in the response. What is the max size of a string allowed in the response (template)? Im doing this using self.

Thank you!!

:)


by admin posted Nov 1 2019, 7:52

The max string length in Self is 1k. If you need to return text greater than 1k, you need to use a Paragraph object.

var text = new Paragraph();
text.append(#sentence, "sentence 1.");
text.append(#sentence, "sentence 2.");
text.append(#sentence, "sentence 3.");
return text;

Updated: Nov 1 2019, 7:55
Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 2400, today: 2, week: 5, month: 25

ને: 29905935
પોસ્ટ: Oct 31 2019, 17:29
જવાબો: 1
જોવાઈ: 2177, આજે: 1, સપ્તાહ: 3, મહિને: 27
0 0 0.0/5