https://discord.gg/botpress logo
Zendesk HITL not working
# 🤝help
r
Hi, when raising the hitl action using the zendesk integration, I'm getting this error: data must have required property 'messageHistory'
p
Could you show me the logs?
r
yes
6 May 2025, 18:36:21 [8521ec2720] [agent-card] [HitlAgent] [startHitl]: StartHitlSession 6 May 2025, 18:36:21 Error executing action HitlAgent:startHitl Os [Error]: data must have required property 'messageHistory' at sC (/var/task/customer_code.js:14:18624) at nt (/var/task/customer_code.js:14:18443) at rC (/var/task/customer_code.js:14:19013) at /var/task/customer_code.js:14:161753 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async startHitlSession (/var/task/customer_code.js:2843:77380) at async handler (/var/task/customer_code.js:2843:80026) at async /var/task/customer_code.js:172:339 at async executeActionAgent (/var/task/customer_code.js:3354:16254) { isApiError: true, code: 400, description: "The provided data doesn't respect the provided JSON schema.", type: 'InvalidDataFormat', error: undefined, id: '77909bbb09f07e7c266f78b0389e482e', metadata: undefined } 6 May 2025, 18:36:21 [8521ec2720] [dm] : Error executing card "card:Escalate to a Human" in flow:Trigger HITL:node:Escalate_to_CRM - Os: data must have required property 'messageHistory'
the issue is the new zendesk integration version
I've tried with the 1.0.7 and worked well
p
So just to be sure I understand correctly, you're using the plugin start hitl card to connect the user with zendesk rather than using the zendesk specific card?
r
there is no zendesk card
p
There is if you're using an autonomous node.
p
Ohhh the HITL agent is deprecated, we have transitioned to the hitl plugin instead.
r
so the hitl zendesk feature is not working?
has dissappeared?
p
No it still is present with the HITL plugin but the process has changed.
r
so how should I do it?
with the HITL plugin?
does it works with any plan?
p
It works with a plus plan or higher
r
so you have remove a feature for the lowest plan??
how can I come back to the version 1.0.7?
p
No the HITL agent equates to the hitl plugin they both require the plus plan. However, the zendesk integration and its built-in hitl cards do not require any paid plan.
r
but it's not working...
why I don't see these cards?
p
They can only be used in autonomous nodes, do you not see them there either?
r
no
p
Huh, ok well I was mistaken and I apologize for that. The way to use hitl on zendesk is to use the plugin start hitl card in a standard node. You must assign the zendesk integration in the plugin's configuration menu. You will not be asked to improve your plan unless you intend to use the botpress hitl dashboard page. Sorry for the confusion and I hope this resolves your issue!
It is not possible to revert to older versions of integrations as of now.
r
Thanks for the notes. The issue now is that with the same Botpress configuration cards, the old Zendesk plugin version works, but the new one doesn’t. So it seems there’s either a bug or a required change in the existing cards that isn’t documented.
p
What is your error at the moment I'm not sure I understand? Can I see your bot at the moment and the logs indicating an issue?
r
6 May 2025, 18:36:21 [8521ec2720] [agent-card] [HitlAgent] [startHitl]: StartHitlSession 6 May 2025, 18:36:21 Error executing action HitlAgent:startHitl Os [Error]: data must have required property 'messageHistory' at sC (/var/task/customer_code.js:14:18624) at nt (/var/task/customer_code.js:14:18443) at rC (/var/task/customer_code.js:14:19013) at /var/task/customer_code.js:14:161753 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async startHitlSession (/var/task/customer_code.js:2843:77380) at async handler (/var/task/customer_code.js:2843:80026) at async /var/task/customer_code.js:172:339 at async executeActionAgent (/var/task/customer_code.js:3354:16254) { isApiError: true, code: 400, description: "The provided data doesn't respect the provided JSON schema.", type: 'InvalidDataFormat', error: undefined, id: '77909bbb09f07e7c266f78b0389e482e', metadata: undefined } 6 May 2025, 18:36:21 [8521ec2720] [dm] : Error executing card "card:Escalate to a Human" in flow:Trigger HITL:node:Escalate_to_CRM - Os: data must have required property 'messageHistory'
this noe
p
You are using an deprecated version of hitl. My recommendations involve using the new method aka the plugin with the zendesk integration. I cannot help you with the old method.
r
I'm using the zendesk plugin version 1.2.0
which should I use?
p
In botpress terms, Zendesk is an integration and hitl is the new plugin. You need both to achieve your goal. Here are the steps: 1. install the zendesk integration and set it up properly 2. Install the hitl plugin 3. set the HITL integration in the plugin's configuration menu to zendesk 4. use the start HITL (orange) card in a standard node 5. You should be good to go! Hope this helps!
b
Hi, I have questions about this issue too: 1. What's the correct way to connect a Standard node with the start HITL card in a workflow to be able to connect with a Zendesk agent at any time of thw workflow? 2. Are {{event.userId}} and {{event.conversationId}} built in variables, or do I need to create them manually? Are those connected to Zendesk? 3. Creating tickets in Zendesk is available in the pay-as-you-go plan? Here is my Workflow at the time which is not working. https://cdn.discordapp.com/attachments/1369354908742189127/1443330890800304289/image.png?ex=6928ae24&is=69275ca4&hm=196433b8631ff30226a54628eff8808cd31b411f5ef45152b406d5a9e78e1fd9&
I made a test conecting the node with the HITL card to the next node and start a conversation in the emulator and I get this error https://cdn.discordapp.com/attachments/1369354908742189127/1443332080191934586/image.png?ex=6928af3f&is=69275dbf&hm=43cf97d94e913ec337d58daf7f6cc69b3fbefad4947edb51bf7161b461969875&
w
Hi Renè, -
{{event.userId}}
and
{{event.conversationId}}
are built in variables - [HITL](https://www.botpress.com/docs/integrations/integration-guides/hitl#human-in-the-loop-hitl) is available from [Plus Plan](https://botpress.com/pricing) - to test HITL you need to publish bot; it's not possible test it in the emulator - Place the Start HITL card where you want to stop the bot and open the ticket.
b
Hi, thanks for the info. Is the HITL plugging needed for the Zendesk Integration?
If my goal is to add the Embed code to my website and when escalation is needed, create a Zendesk ticket in which an agent can have a live conversation with the user in the webchat, the agent will respond through the Zendesk ticket and the user through the webchat. Same goal with WhatsApp.