Skip to content
Stack AI integratio...
 
Notifications
Clear all

Stack AI integration with callin.io (run Python, Javascript)

4 Posts
3 Users
0 Reactions
68 Views
John2
(@john2)
Posts: 4
Active Member
Topic starter
 

Hi,

I'm in the process of setting up a Telegram Bot.

At a certain stage in the scenario, I need to execute an API call to Stack AI.

When I make this API call, I'm using a previous input message (e.g., "hi, how are you"), and Stack AI is expected to provide an AI-generated response.

So far, I've successfully configured other API calls using the HTTP module. However, Stack AI only offers Python or Javascript code as options.

They provide straightforward instructions for integration with Zapier (Integrating with Zapier | Stack AI) using their Python Code module, but I haven't found a similar guide for callin.io.

I've attempted to use HTTP modules and JSCode modules, but I'm still encountering issues getting it to function correctly.

My primary questions are:

  • Which module would be most suitable for this task? (And also cost-effective)
  • Am I correct in assuming that the HTTP module won't work, and I specifically need to use a Python or Javascript module?
  • Do I need to run two separate instances (one POST for the input, one GET for the output), or can this entire process be handled within a single module?

Thank you!

 
Posted : 18/07/2023 6:37 pm
Thomas_Gaillard
(@thomas_gaillard)
Posts: 1
New Member
 

Hi,

On my end, I can successfully make a call to Stack AI using a single HTTP module. However, it might depend on the specific model you're using:

Could you try clicking the “cURL” button within Stack AI? This action should help clarify the required input for the request.

Thank you

 
Posted : 19/07/2023 2:22 am
John2
(@john2)
Posts: 4
Active Member
Topic starter
 

This is a bit embarrassing.

I had to upgrade my Stack AI plan to Paid to actually deploy the model. lol Thanks for the assistance.

The output is now working:

 
Posted : 19/07/2023 4:09 pm
vendy
(@vendy)
Posts: 38
Trusted Member
 

Hey there and welcome to the community

:wave:

We're thrilled to see you found a solution on your own! There's no need to feel embarrassed; you're making progress by learning how to use the product.

Thank you for thinking of the community and sharing your solution with us.

:pray:

 
Posted : 20/07/2023 6:48 am
Share: