Skip to content
Function or Text? E...
 
Notifications
Clear all

Function or Text? Exploring AI Capabilities

5 Posts
2 Users
0 Reactions
3 Views
TangoBravo
(@tangobravo)
Posts: 5
Active Member
Topic starter
 

The goal:
Simply format a number from +12021231234 (E164 format) to 202-123-1234.
That's it.
I went to ChatGPT (GPT-4 model) and asked for the formula for a set variable. I received:
replace(toString(+12222222222); "(d{3})(d{3})(d{4})"; "$1-$2-$3"; "regex")

The problem is that callin.io runs it as text and NOT a function.
Tried all the suggestions (= in front, etc).
NOTHING works.
I tried callin.io AI and it got it wrong also. (It was the worst of all, sorry callin.io)

Is there no way to copy and paste a function into a callin.io tools/set variable?
I love how ChatGPT claims there is a function button that’s not there. (It’s not there, or I don’t have the magic word, I guess)

Is it possible to paste a function into a set variable value field and have it execute as a formula and NOT as text?

It must be me, cause I couldn’t find this being asked before either…

Any help is appreciated.

Alfred

Followup:
First off, ChatGPT and even the callin.io AI were wrong. Consistently. The callin.io AI bot even created blank modules and when filling them out, it was filling them out with incomplete formulas.

The answer was in the replace and regex documentation, that even though I pointed GPT-4 to it, it seems it ignored it. I assumed (yeah, I know) that the callin.io AI would have access to the latest documentation.

Google AI Studio solved the problem on the FIRST try. It even gave me the {{ }} to correctly enter the expression (vs other AIs telling me to select the non-existent formula button.)
Also, Google AI, using the free version BTW, correctly used / for regex and described in callin.io Docs.

Moral of the story:

  1. Don’t trust AI for coding. It’s sometimes just plain wrong and when called on it, admits it “misleads” you.
  2. Not all LLMs are created the same. Google has gotten better.
  3. AI doesn’t always save time. I should have taken the 30 seconds to read the documentation. I was being lazy and that’s on me.
  4. I am seriously considering dropping ChatGPT. Just tired of it giving me wrong info and then telling me that sorry, no more wrong answers for you today, wait for 3 hours. ($20 a month plan, no way they are getting $200 from me.)

Hope this helps some. First thing to do is read the callin.io docs THEN try AI if still needed.

 
Posted : 13/05/2025 5:00 pm
Stoyan_Vatov
(@stoyan_vatov)
Posts: 22
Eminent Member
 

Hello,

Indeed, many AIs are essentially advanced text generators. While they remain highly valuable, their utility isn't quite as broad as commonly perceived.

You can directly paste formulas into callin.io, as long as the formula is correctly structured. This is where the "understanding" aspect of AI becomes relevant – they don't truly grasp the required format, nor are they fully aware of all the potential formulas that callin.io supports. Here's an illustration of an IF formula:

{{if(1.test = "true"; "green"; "red")}}

As a side note, if you need to format a phone number, there's a dedicated module for that called "Parse a phone number."

 
Posted : 14/05/2025 3:32 pm
TangoBravo
(@tangobravo)
Posts: 5
Active Member
Topic starter
 

Yes, I'm utilizing the parse phone number feature, but the available formats don't include the ###-###-#### pattern that I require for my database. I'd prefer not to modify the database structure itself.

Regarding AI, you're absolutely correct. For instance, it appears they don't recognize the need to provide us with {{ }} syntax for inputting formulas into callin.io.

For some reason, even the callin.io AI, which was particularly underwhelming, isn't functioning as expected. callin.io should either ensure this works correctly or discontinue the feature entirely.

It would be beneficial to have a keyboard shortcut to execute just this module, allowing us to test formulas without relying on the mouse.

Thanks.

All the best,

Alfred

 
Posted : 14/05/2025 3:59 pm
Stoyan_Vatov
(@stoyan_vatov)
Posts: 22
Eminent Member
 

Isn't that the international format, but without the country code you require?

Here:

{{get(split(1.international; space); 2)}}

Substitute the '1' with the number of your Parse phone number module, and it ought to function.

 
Posted : 14/05/2025 4:10 pm
TangoBravo
(@tangobravo)
Posts: 5
Active Member
Topic starter
 

I opted for the Google AI studio's initial solution, and it functions flawlessly. The variable "phone" represents the previous callin.io native phone format module, which is excellent for E164 but lacks the desired formatting for ###-###-####.

{{replace(phone; "/^(d{3})(d{3})(d{4})$/"; "$1-$2-$3")}}
 
Posted : 14/05/2025 4:35 pm
Share: