Using the Make API call step in an AI agent for messaging (Legacy)



image avatar

Aimee Spanier

Zendesk Documentation Team

Edited Apr 29, 2025


0

64

69 comments

We need the character limit to be lifted. 280 is very small. Please look at opening this in the future. We are trying to a return an accessory list of products for one of our products, but the 280 limit stops us from providing that full list.
We tried breaking it up into multiple variables, but the the system requires us to save each one for each new product, which then runs into the 50 mac variable limit. 
Please either raise the character limit to at least 1000 or raise the variable limit to at least 200.

0


Is it possible to include the originating URL for the page on which the chat bot was accessed in an API call?  Our use case is that we are installing the chat bot on a video player and each video has a distinct URL.  I created a chat bot flow that creates a Zendesk ticket.  We'd like to be able to include the URL for the page in the ticket so we know where to go look for a problem.  Right now we'd have to ask the user for something and we're guaranteed to get vague answers.

0


Como faço para apagar variáveis que coloquei para teste e agora estão ocupando espaço no meu bot?

0


I am trying to get data from hubspot via Make API call.
I am using POST method and i get all fields i want and can turn them to variable.

However the fields ( variables) are coming as numbers. (e.g "hs_pipeline_stage":"67655766",)

How can i say to ZD to display text according to the variable coming in?

Is there a way to create an array or so besides carousel?

{
"results":
[
{
"archived":false,
"createdAt":"2024-10-07T09:40:44.097Z",
"id":"3935559789",
"properties":
{
"content":"testtest",
"createdate":"2024-10-07T09:40:44.097Z",
"hs_lastmodifieddate":"2024-10-07T09:47:39.348Z",
"hs_object_id":"3937669789",
"hs_pipeline_stage":"67655766",
"hs_ticket_category":"TESTME",
"hs_ticket_id":"3937259789"},
"updatedAt":"2024-10-07T09:47:39.348Z"}
],
"total":1
}

 

0


I have a similar question to 6336142945306 
For example, I want to use users.json to allow end users to retrieve their information using an API.

If a user has a "custom_role_id" value, I can create a flow by saving that value as a variable.
However, if the flow is executed for a user who does not have a "custom_role_id" value, an API error is returned.

In conclusion, even null values ​​should be saved as variables, and when the variable is referenced in the flow, a null value should be returned instead of an error.

Is this possible?

0


Hi,
I have some data I want to add to the API request body, this is data that I already have when the chat window opened (no need to gather it from the user), how can I do that?

0


Has anyone managed to set this up with Stripe? 

0


Hey, https://support.zendesk.com/hc/en-us/articles/4572971586586/comments/4614301298458 is there any updates? 
about getting information from the user in order to use their input as parameters in API request

0


Hola muy buenas María!
 
Este caso que comentas, está justamente mencionado al pie de este artículo, donde pone:

Si la API devuelve un código de respuesta de 400, 500, o 200 con datos a los que les faltan cualquiera de las variables, el bot seguirá por la rama de fallas.

 
He visto este tipo de situaciones, cuando se quiere utilizar un null value como expresión boolean. Por eso la llamada puede ser exitosa (respuesta 200), pero el valor no corresponde a ninguna de las varlables que se han guardado para el flujo, por lo que el paso API fallará.
 
Un ejemplo:
 

En este caso, cuando el valor sea null el paso API va a fallar, por mas que la llamada sea exitosa. Ya que la variable aquí guardada es organization_id y null no es un valor exista para ese atributo.
 
Espero esta explicación te sea de utilidad. Si precisaras revisar tu caso en mas profundidad, te sugiero por favor dirigirte a support.zendesk.com/hc e iniciar una conversación con el bot para ponerte en contacto con nuestro equipo de soporte.
 
Saludos y que tengas buena semana!

0


Buenas, he configurado la respuesta de Hacer una llamada a una API al revisar los Logs, veo que la respuesta fue “SUCCEEDED”, sin embargo entra por la rama de error de llamada API, entonces realmente no se que hacer para este caso, ya que no entiendo porque esta entrando por esa rama.

0


Sign in to leave a comment.