https://discord.gg/botpress logo
Google Calendar Create Event Attendees Array Probl...
# 🤝help
d
Hi everyone, I'm having an issue with the Google Calendar integration to create events within the bot. That works very well until I try to place attendees e-mails for immideate invites. The error message say that the input has to be an array. Can anybody help me? 😫 This is the instruction from the guide for the Google calendar integration: /** List of attendees for the event. Email invitations will be sent automatically. */ attendees?: Array<{ /** The email address of the attendee. */ email: string ; /** The name of the attendee. Optional. */ displayName?: string ; /** Whether this is an optional attendee. Optional. The default is False.*/ optional: boolean }> *This is what I placed in the attendees field: * Array<{ "email": "s.g@gmail.com", "displayName": "SG", "optional": false }> *When the create event is executed I get the error message that it is not an array: * 18:03:44 error node:AutonomousNode autonomous-node Tool googlecalendar.createEvent failed Tool googlecalendar.createEvent failed { type: 'tool_call', tool_call_id: 'tcall_01KHVDQ1JPZQ5YTESA7W9Z1EDV', started_at: 1771520624214, ended_at: 1771520624404, tool_name: 'createEvent', object: 'googlecalendar', input: { summary: 'Beratungsgespräch mit MindVault', description: '', startDateTime: '2026-02-24T10:30:00+01:00', endDateTime: '2026-02-24T11:30:00+01:00', guestsCanInviteOthers: false, guestsCanSeeOtherGuests: false, recurrence: [], enableGoogleMeet: false, sendNotifications: false, attendees: ' Array<{ "email": "s.g@gmail.com", "displayName": "SG", "optional": false }> ' }, output: undefined, error: [Error: Error calling integration action; invalid input for action "googlecalendar:createEvent": data/attendees must be array], success: false } {"scope":"autonomous-node","workflowId":"node:AutonomousNode","nodeId":"node:AutonomousNode"} https://cdn.discordapp.com/attachments/1474090708599177329/1474090709857599609/Bildschirmfoto_2026-02-19_um_18.06.06.png?ex=69989574&is=699743f4&hm=a747d3c51c1a7949bb996786801f4f0557141cc36b04fd5b1ceb01a67fc70d90& https://cdn.discordapp.com/attachments/1474090708599177329/1474090710222508134/Bildschirmfoto_2026-02-19_um_18.06.45.png?ex=69989574&is=699743f4&hm=ac7195810e35a89ebe3e3bcd372a4481d125842202db96c9c058361029671aa8&
WorkflowID 01KCPW0RPJR7X6ATK55RP460VZ
d
Hi Chloe, thank you so much for the quick response. I tried to place the array like this and when I place it like this the bot fails already at initializing. It does not give a response to the first message. On Inspect I can see the following error: TypeError a.clone is not a function { "name": "TypeError", "message": "a.clone is not a function", "stack": "TypeError: a.clone is not a function\n at https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:67875\n at Array.map ()\n at nI.clone (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:67866)\n at $D.clone (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:24749)\n at kd.clone (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:45674)\n at Iy.clone (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:31767)\n at Iy.metadata (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:5559)\n at Iy.title (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:38:5991)\n at addTools (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:1009:36671)\n at async Object.build (https://studio.botpress.cloud/assets/botpress-bhdBE3OI.js:1013:165)" } https://cdn.discordapp.com/attachments/1474090708599177329/1474153571057402061/Bildschirmfoto_2026-02-19_um_22.17.14.png?ex=6998cfff&is=69977e7f&hm=b7d651b859ac69d4275f3531046f25dbe87d474dca0b6d1dda2dcfc10b54e5d7&
w
Can you show what the inside of the card looks like where this error happens in?
d
This is the CreateEvent and the checkAvailability card setup. When I fill the attendees field in the CreateEvent card it leads to this error, when the attendees field is empty it works just fine. So I assume the error is withing the CreateEvent card Before I start the autonomous node a code card fills a variable for the current date+1d and current date +7d. Those variables are used later for the availabilityCheck. I assume this card is unrelated to the error. https://cdn.discordapp.com/attachments/1474090708599177329/1474356539178483792/Bildschirmfoto_2026-02-20_um_11.37.39.png?ex=69998d07&is=69983b87&hm=567b93e250083cef9350f9f11026bb07d0d0838dba63da486ca5e09f30d076f5& https://cdn.discordapp.com/attachments/1474090708599177329/1474356539447054387/Bildschirmfoto_2026-02-20_um_11.38.41.png?ex=69998d07&is=69983b87&hm=25eed31de760063738bcfe7780f359c2b4f56bbe9308e0c9bbbda6d00f322ed4& https://cdn.discordapp.com/attachments/1474090708599177329/1474356539732263056/Bildschirmfoto_2026-02-20_um_11.40.44.png?ex=69998d07&is=69983b87&hm=aa5adce6a6ebd9386ded1ff3959330687c9cf9b0ccc866ce8704e8b356071062&
w
Thanks! I'll take a look at your workspace, see if I can replicate this error
d
Hi Ross, sorry I copied it yesterday but now I have a different ID in the URL. Don't know what went wrong here: Try this: 01K3RNX07M9B21NA3PWJQ4D14H or this /bots/d4bb3eb4-84e1-4629-b65a-afd9e3b179e
l
I am getting erros for both of these IDs
Can I get the email used for your botpress account?
also what plan are you currently on?
(feel free to dm me if its personal)
2 Views