
PRO
rz90208
USA
Asked
— Edited
I am saving a number in to a variable and when I retrieve the number from the variable it is in exponential notation.
Is it possible to tell ARC NOT to do this?
The number I am storing is the conversation ID to be sent to a chatbot.
RichardZ
Upgrade to ARC Pro
Get access to the latest features and updates with ARC Early Access edition. You'll have everything that's needed to unleash your robot's potential!
Based on your post activity, we found some content that may be interesting to you. Explore these other
tutorials and community conversations.
You can easily reproduce the issue:
Code:
So when I parse the response from the chatbot, instead of just getting the communication ID from the response, I grab the entire &communication=xxxxxxxxxxxxx and store that.
I am sure this will problem will haunt me again. So if anyone has an answer or work around feel free to post it.
Thank you ptp for the clarification.
RichardZ
I believe is botlibre post:
https://www.ez-robot.com/Community/Forum/Thread?threadId=10152
I had that issue in the past, while composing an url with numeric values e.g. session's Id.
There are workarounds like storing letters/symbols in the string to force ARC to handle the value as text.
It's a bug.
I believe is something deeper in the EZ-Script engine e.g. how values are handled.
Another example:
Code:
Are you happy with botlibre ?
It seems much more raw than PandoraBots v1.
I use BotLibre.
If you have not heard of it check it out. It is a free service and has a lot of great features.
It supports AIML 2.0 and also has its own script language called Self.
The conversation ID for the current conversation. This must not be passed on the first message, but will be returned by the response, and should be used for all subsequent messages in the conversation.
In my opinion, I think it is currently the best one out there. And once you learn the self scripting language the possibilities are endless. On that note its one draw back is its lack of good documentation on the self language. Making it at least for me hard to grasp.
Please forgive me as I'm not a programmer but the reason, as I see in the example above :
if ($str1=="12345 foo")
is not coming up with a "good" in the output is because a space is needed before foo
$str1=$str1 + " foo"
If you know this and I am not understanding what is going on, please forgive me?
you missed the step 1
Code:
I do see the problem now, and glad you took the time to point it out to me.
If you'd like to share your own specific code that you are specifically having an issue with getting to work with Botlibre I'd be happy to take a look. I don't seem to have special start conversation requirements with my Botlibre bot.
BTW, SELF as a scripting programming language is really obscure, while it's roots have been around 30 years and they say it inspired JavaScript.
If it were me I would be personally be temped to steer clear of SELF scripting if possible and stick to the AIML because that is XML and that's a lot easier to read and follow and find tutorials and videos online to learn about.
BUT if you do want to learn more about SELF BOTLibres own documents claim it uses JavaScript. So if you wanted to really learn more you could seek online learning resources on JavaScript because you should be able to find a TON and what you learn there should translate back to SELF.
ez-script is now using 64 bit number instead of 32
Thanks for the interest.
I will post something when I get home this evening.
RichardZ
Ok Justin you asked for it.
This is the Get User Data Routine:
Code:
Code: