Whenever an event occurs during your bot’s execution—like a message being sent—you can access details about that event using the event object’s properties.The event object is available wherever you can use code in Botpress Studio. This includes:
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Botpress","colors":{"primary":"#0090FF","light":"#3B9EFF","dark":"#0588F0"},"logo":{"light":"https://mintcdn.com/botpress/U-4GnVaxESbJOVgP/logo/light.svg?fit=max\u0026auto=format\u0026n=U-4GnVaxESbJOVgP\u0026q=85\u0026s=df22258e2155256a01174f5316ebc024","dark":"https://mintcdn.com/botpress/U-4GnVaxESbJOVgP/logo/dark.svg?fit=max\u0026auto=format\u0026n=U-4GnVaxESbJOVgP\u0026q=85\u0026s=c7418cf9e02f06a53c7539fada0c96d4","href":"https://botpress.com/docs"},"favicon":"https://mintcdn.com/botpress/lKQBqQA1hrY6ODf5/favicon.svg?fit=max\u0026auto=format\u0026n=lKQBqQA1hrY6ODf5\u0026q=85\u0026s=0867a83e88e8476b31ba5dd72cb37583","background":{"color":{"light":"#fcfcfc","dark":"#1a1a1a"}},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://app.botpress.cloud"}},"footer":{"socials":{"x":"https://x.com/getbotpress","github":"https://github.com/botpress","linkedin":"https://www.linkedin.com/company/botpress","youtube":"https://www.youtube.com/botpress","discord":"https://discord.com/invite/botpress"}},"seo":{"metatags":{"og:logo":"/meta-assets/meta-logo.png"}},"fonts":{"heading":{"family":"Aspekta, sans-serif","weight":600,"source":"https://aspekta-cdn.vercel.app/fonts/AspektaVF.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"light-plus","dark":"dark-plus"}},"latex":false},"integrations":{"mixpanel":{"projectToken":"1195923e954ce61d822842b5832047cd"}},"contextual":{"options":[{"title":"Ask AI","description":"Ask AI a question about this page","icon":"/icon.png","href":"#ask"},"copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":false},"metadata":{"timestamp":true},"navigation":{"global":{"anchors":[{"anchor":"Community Discord","icon":"discord","href":"https://discord.com/invite/botpress"},{"anchor":"News \u0026 Resources","icon":"newspaper","href":"https://botpress.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"botpress","hasAudioNarration":false,"actualSubdomain":"botpress","customDomains":["botpress.com"],"gitSource":{"type":"github","owner":"botpress","repo":"docs","deployBranch":"master","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a676aaf2a513e6ab67f02b1","collectionId":"cf06ac30-b1bf-43e8-be9b-f18d8676b5e9","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a676aaf2a513e6ab67f02b1"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"}},"buildId":"6ae9260993c0d64dfeafb71b:success","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Docs","count":192},{"language":"default","tag":"API Reference","count":132},{"language":"default","tag":"Endpoints","count":117},{"language":"default","tag":"Studio","count":80},{"language":"default","tag":"Integrations","count":79},{"language":"default","tag":"Guides","count":75},{"language":"default","tag":"Concepts","count":57},{"language":"default","tag":"Admin API","count":40},{"language":"default","tag":"Runtime API","count":36},{"language":"default","tag":"ADK","count":32}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"[data-page-mode=\"frame\"] footer,[data-page-mode=\"frame\"] [data-component=\"footer\"]{display:flex!important}.transparent-accordion .bg-background-light{background-color:transparent!important}.callout[data-callout-type=\"info\"]{background-color:light-dark(rgba(253, 244, 255, 0.5), rgba(217, 70, 239, 0.1));border-color:light-dark(rgba(217, 70, 239, 0.2), rgba(168, 85, 247, 0.3))}.callout[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:light-dark(rgba(192, 38, 211), rgba(232, 121, 249, 0.8))}.callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"]{color:light-dark(rgba(112, 26, 117), rgba(245, 208, 254))}.steps{margin-top:0}.bpFab{box-shadow:none!important}.tracking-tight{letter-spacing:normal!important}.high-contrast{color:light-dark(black, white)!important}.button{background-color:#0588f0;color:white;text-align:center;border:1px solid #0588f0;font-weight:500;padding:0.5rem 1rem;font-size:0.9rem;line-height:130%;text-decoration:none;transition:all 0.2s;position:relative}.button:hover{opacity:0.9}.discord_banner{text-align:center;background-color:light-dark(#fcfcfc, #1a1a1a);border:1px solid #626762;padding:0.5rem 1rem;font-size:0.9rem;line-height:130%;text-decoration:none;transition:all 0.2s;position:relative}#test{margin:0}@media (min-width: 768px){.home-columns{flex:1 1 0%;max-width:33.333%}.lower-columns{flex:1 1 0%;max-width:50%}}[data-nav-tag=\"Beta\"]{background-color:light-dark(#e3eafd, #07296a)!important;color:light-dark(#133a9a, #7196f4)!important}[data-nav-tag=\"Plus\"]{background-color:light-dark(#e3eafd, #07296a)!important;color:light-dark(#133a9a, #7196f4)!important}[data-nav-tag=\"Team\"]{background-color:light-dark(#d1fae4, #0f4c2c)!important;color:light-dark(#166e3f, #6ae1a1)!important}@media (min-width: 768px){.bpWebchat{min-width:450px;width:29.7vw!important;max-height:83.2vh!important}}#ai-bolt{height:0.9em!important;width:auto!important;aspect-ratio:auto!important;pointer-events:none}.max-w-xl{max-width:40em}img{background-color:inherit!important}[data-component-part=\"card-content\"]{font-size:0.875rem}.bot-toggle-container{position:fixed;top:3.55rem;right:-16px;bottom:0;width:32px;height:auto;background-color:transparent;z-index:30;pointer-events:auto;display:flex;align-items:center;justify-content:center;cursor:pointer}.bot-panel-expanded .bot-toggle-container{display:none}#bot-toggle{position:fixed;top:3.55rem;right:0;bottom:0;width:40px;height:auto;background-color:light-dark(#f7f7f8, #09090b);border-left:1px solid light-dark(rgb(226, 222, 230), rgb(255 255 255/0.07));border-right:none;color:light-dark(#1a1a1a, #fcfcfc);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:30;padding:0}#bot-toggle:hover{background-color:light-dark(#f0f0f0, #2a2a2a)}#bot-toggle.bot-toggle-expanded{display:none}#bot-toggle svg{width:16px;height:16px}.bot-panel{position:fixed;top:3.55rem;right:0;bottom:0;width:400px;height:auto;background-color:light-dark(#f7f7f8, #09090b);z-index:29;display:flex;flex-direction:row;transform:translateX(100%);resize:none;overflow:visible;transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1)}.bot-panel-expanded{transform:translateX(0)}.bot-panel-collapsed{transform:translateX(100%)}.bot-iframe-container{flex:1;height:100%;position:relative;overflow:hidden;pointer-events:auto;min-width:0;border-left:1px solid light-dark(rgb(226, 222, 230), rgb(255 255 255/0.07))}.bot-iframe{width:100%;height:100%;border:none;display:block}.bot-mobile-dismiss{display:none;position:absolute;top:0;left:0;right:0;height:40px;background-color:transparent;z-index:33;align-items:center;justify-content:center;cursor:grab;pointer-events:auto;touch-action:none}.bot-mobile-dismiss:active{cursor:grabbing}.bot-mobile-dismiss svg{width:36px;height:20px;color:light-dark(rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.4))}@media (max-width: 1024px){#bot-toggle{display:none!important}.bot-mobile-dismiss{display:flex}.bot-panel{width:100%;max-width:100vw;min-width:100vw;resize:none;top:0;left:0;right:0;height:100dvh;z-index:31;padding:0;margin:0;transform:translateY(100%);transition:transform 0.15s cubic-bezier(0.32, 0.72, 0, 1);border-top:1px solid light-dark(rgb(226, 222, 230), rgb(255 255 255/0.07))}.bot-panel-expanded{transform:translateY(0)}.bot-panel-collapsed{transform:translateY(100%)}.bot-panel-expanded.swiping{transition:none}.bot-panel-expanded .bot-iframe-container{padding:0;margin:0;border:none}.bot-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:30;opacity:0;pointer-events:none;transition:opacity 0.3s ease}.bot-overlay.visible{opacity:1;pointer-events:auto}}.ask-ai-input-bubble{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(0);z-index:30;width:480px;max-width:480px;pointer-events:none;transition:opacity 150ms ease,\n transform 150ms ease;opacity:1}.ask-ai-input-wrapper{display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 24px;border:1px solid light-dark(rgb(var(--gray-950) / 0.2), rgb(255 255 255/0.2));border-radius:16px;background-color:light-dark(rgba(252, 252, 252, 0.8), rgba(26, 26, 26, 0.8));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.05);pointer-events:auto;transition:border-color 400ms,\n opacity 150ms ease;width:100%}.ask-ai-input-bubble:focus-within .ask-ai-input-wrapper{border-color:#0588f0}.ask-ai-input{flex:1;padding:16px 0;border:none;background:transparent;color:light-dark(rgb(var(--gray-600)), rgb(var(--gray-400)));font-size:0.875rem;font-family:inherit;outline:none;outline-width:0;min-width:0}.ask-ai-input::placeholder{color:light-dark(rgb(var(--gray-600)), var(--gray-400))}.ask-ai-shortcut{font-size:0.75rem;font-weight:600;user-select:none;pointer-events:none;margin:0 8px;color:light-dark(rgb(var(--gray-600)), rgb(var(--gray-400)));display:none}@media (min-width: 1024px){.ask-ai-shortcut{display:inline}}.ask-ai-send-button{display:flex;justify-content:center;align-items:center;padding:6px;width:32px;height:32px;border-radius:50%;border:none;background-color:light-dark(rgba(5, 136, 240, 0.3), rgba(5, 136, 240, 0.3));color:white;cursor:pointer;transition:background-color 0.2s ease,\n opacity 0.2s ease;flex-shrink:0}.ask-ai-send-button svg{width:22px;height:22px}.ask-ai-send-button:not(:disabled){background-color:#0588f0}.ask-ai-send-button:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.ask-ai-input-bubble-hidden{opacity:0;pointer-events:none;transform:translateX(-50%) translateY(10px)}@media (max-width: 1024px){.ask-ai-input-bubble{bottom:16px;left:50%;transform:translateX(-50%) translateY(0);width:calc(100% - 64px);max-width:320px}.ask-ai-input-bubble-hidden{transform:translateX(-50%) translateY(10px)}.ask-ai-input-wrapper{padding:0 12px 0 16px}.ask-ai-input{padding:12px 0;pointer-events:none;cursor:pointer}.ask-ai-input-wrapper{cursor:pointer}.ask-ai-send-button{display:none}.ask-ai-shortcut{display:none}}"}],"page":{"pagePath":"studio/guides/advanced/event-properties","slug":"/studio/guides/advanced/event-properties","pageMetadata":{"title":"Event Properties","description":null,"href":"/studio/guides/advanced/event-properties"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,ResponseField,Tooltip,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Whenever an event occurs during your bot’s execution—like a message being sent—you can access details about that event using the `,_jsx(_components.code,{children:`event`}),` object’s properties.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`event`}),` object is available `,_jsx(_components.a,{href:`/studio/guides/advanced/use-code`,children:`wherever you can use code in Botpress Studio`}),`. This includes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/studio/concepts/hooks`,children:`Hooks`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/studio/concepts/actions`,children:`Actions`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/studio/concepts/cards/execute-code`,children:`Execute Code Cards`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`You can also access the `,_jsx(_components.code,{children:`event`}),` object within certain `,_jsx(_components.a,{href:`/studio/concepts/cards/introduction`,children:`Cards`}),`’ configuration fields.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This documentation omits certain properties of the `,_jsx(_components.code,{children:`event`}),` object which exist to maintain internal functionality and aren’t useful for `,_jsx(Tooltip,{tip:`Happy bot building!`,children:`bot builders`}),`.`]})}),`\n`,_jsxs(ResponseField,{name:`event`,type:`IncomingEvent`,id:`param-event`,children:[_jsx(_components.p,{children:`Information about the last incoming event in your bot’s execution.`}),_jsxs(Expandable,{children:[_jsx(ResponseField,{name:`botId`,type:`string`,required:true,id:`param-bot-id`,children:_jsx(_components.p,{children:`The ID of the bot that experienced the event.`})}),_jsx(ResponseField,{name:`conversationId`,type:`string`,id:`param-conversation-id`,children:_jsx(_components.p,{children:`The ID of the conversation that the event took place in.`})}),_jsx(ResponseField,{name:`createdOn`,type:`Date`,required:true,id:`param-created-on`,children:_jsxs(_components.p,{children:[`The data and time when the event was created (in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/ISO_8601`,children:`ISO 8601`}),` format).`]})}),_jsxs(ResponseField,{name:`direction`,type:`EventDirection`,required:true,id:`param-direction`,children:[_jsx(_components.p,{children:`The direction of the event, indicating whether the event was received by the bot or sent from the bot.`}),_jsx(_components.p,{children:`Possible values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`'incoming'`}),`: The event originated from the user and was received by the bot.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`'outgoing'`}),`: The event was generated by the bot and sent to the user.`]}),`\n`]})]}),_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The unique identifier for the event.`})}),_jsx(ResponseField,{name:`integration`,type:`string`,id:`param-integration`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/integrations/`,children:`integration`}),` that the event occurred on.`]})}),_jsxs(ResponseField,{name:`kb`,type:`object`,id:`param-kb`,children:[_jsxs(_components.p,{children:[`Information about `,_jsx(_components.a,{href:`/studio/concepts/knowledge-base/introduction`,children:`Knowledge Bases`}),` queried for the event.`]}),_jsxs(Expandable,{children:[_jsxs(ResponseField,{name:`included`,type:`Studio.KnowledgeBase.KB[]`,required:true,id:`param-included`,children:[_jsx(_components.p,{children:`Array of Knowledge Bases queried for the event.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.`})})]}),_jsxs(ResponseField,{name:`results`,type:`Studio.KnowledgeBase.ContentResult[]`,id:`param-results`,children:[_jsx(_components.p,{children:`Array of Knowledge Base results consulted for this event.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.`})})]})]})]}),_jsx(ResponseField,{name:`messageId`,type:`string`,id:`param-message-id`,children:_jsx(_components.p,{children:`The unique identifier for the current event’s message.`})}),_jsx(ResponseField,{name:`payload`,type:`object`,required:true,id:`param-payload`,children:_jsx(_components.p,{children:`The payload for the current event.`})}),_jsx(ResponseField,{name:`preview`,type:`string`,required:true,id:`param-preview`,children:_jsx(_components.p,{children:`A representation of the event in plain text. If the event is text message, this property will contain the message itself.`})}),_jsxs(ResponseField,{name:`state`,type:`EventState`,required:true,id:`param-state`,children:[_jsx(_components.p,{children:`Data related to the state of the event.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.`})})]}),_jsxs(ResponseField,{name:`tags`,type:`EventTags`,id:`param-tags`,children:[_jsx(_components.p,{children:`Any tags associated with the current event. These can contain useful data related to the integration associated with the event.`}),_jsxs(Expandable,{children:[_jsx(ResponseField,{name:`conversation`,type:`object`,id:`param-conversation`,children:_jsx(_components.p,{children:`Tags for the conversation.`})}),_jsx(ResponseField,{name:`message`,type:`object`,id:`param-message`,children:_jsx(_components.p,{children:`Tags for the message.`})}),_jsx(ResponseField,{name:`user`,type:`object`,id:`param-user`,children:_jsx(_components.p,{children:`Tags for the user.`})})]})]}),_jsxs(ResponseField,{name:`trigger`,type:`DM.Trigger`,id:`param-trigger`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/studio/concepts/triggers`,children:`Trigger`}),` that sent the event.`]}),_jsxs(Expandable,{children:[_jsx(ResponseField,{name:`conversationId`,type:`string`,id:`param-conversation-id-1`,children:_jsx(_components.p,{children:`The ID of the conversation associated with this Trigger.`})}),_jsx(ResponseField,{name:`eventName`,type:`string`,id:`param-event-name`,children:_jsx(_components.p,{children:`The name of the event that the Trigger sent.`})}),_jsx(ResponseField,{name:`flowId`,type:`string`,required:true,id:`param-flow-id`,children:_jsx(_components.p,{children:`The ID of the Workflow containing the Trigger.`})}),_jsx(ResponseField,{name:`integration`,type:`string`,id:`param-integration-1`,children:_jsx(_components.p,{children:`The integration associated with the Trigger.`})}),_jsx(ResponseField,{name:`nodeId`,type:`string`,required:true,id:`param-node-id`,children:_jsx(_components.p,{children:`The ID of the Node that contains the Trigger.`})}),_jsx(ResponseField,{name:`userId`,type:`string`,id:`param-user-id`,children:_jsx(_components.p,{children:`The ID of the user associated with this Trigger.`})})]})]}),_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsx(_components.p,{children:`The type of the event.`})}),_jsx(ResponseField,{name:`userId`,type:`string`,id:`param-user-id-1`,children:_jsx(_components.p,{children:`The user ID associated with this event.`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"light-plus","dark":"dark-plus"}},"config":{},"pageMetadata":{"title":"Event Properties","description":null,"href":"/studio/guides/advanced/event-properties"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,ResponseExample,ResponseField,Tooltip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Event properties`,numberOfLines:`31`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes light-plus dark-plus`,style:{backgroundColor:`#FFFFFF`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#000000`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`31`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"botId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversationId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdOn\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cDate>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"direction\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cEventDirection>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"integration\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"kb\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"included\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"messageId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"preview\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"tags\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversation\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"trigger\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversationId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventName\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"flowId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"integration\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"nodeId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0451A5`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#A31515`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cstring>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#000000`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsxs(_components.p,{children:[`Whenever an event occurs during your bot’s execution—like a message being sent—you can access details about that event using the `,_jsx(_components.code,{children:`event`}),` object’s properties.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`event`}),` object is available `,_jsx(_components.a,{href:`/studio/guides/advanced/use-code`,children:`wherever you can use code in Botpress Studio`}),`. This includes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/studio/concepts/hooks`,children:`Hooks`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/studio/concepts/actions`,children:`Actions`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/studio/concepts/cards/execute-code`,children:`Execute Code Cards`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`You can also access the `,_jsx(_components.code,{children:`event`}),` object within certain `,_jsx(_components.a,{href:`/studio/concepts/cards/introduction`,children:`Cards`}),`’ configuration fields.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This documentation omits certain properties of the `,_jsx(_components.code,{children:`event`}),` object which exist to maintain internal functionality and aren’t useful for `,_jsx(Tooltip,{tip:`Happy bot building!`,children:`bot builders`}),`.`]})}),`\n`,_jsxs(ResponseField,{name:`event`,type:`IncomingEvent`,id:`param-event`,children:[_jsx(_components.p,{children:`Information about the last incoming event in your bot’s execution.`}),_jsxs(Expandable,{children:[_jsx(ResponseField,{name:`botId`,type:`string`,required:true,id:`param-bot-id`,children:_jsx(_components.p,{children:`The ID of the bot that experienced the event.`})}),_jsx(ResponseField,{name:`conversationId`,type:`string`,id:`param-conversation-id`,children:_jsx(_components.p,{children:`The ID of the conversation that the event took place in.`})}),_jsx(ResponseField,{name:`createdOn`,type:`Date`,required:true,id:`param-created-on`,children:_jsxs(_components.p,{children:[`The data and time when the event was created (in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/ISO_8601`,children:`ISO 8601`}),` format).`]})}),_jsxs(ResponseField,{name:`direction`,type:`EventDirection`,required:true,id:`param-direction`,children:[_jsx(_components.p,{children:`The direction of the event, indicating whether the event was received by the bot or sent from the bot.`}),_jsx(_components.p,{children:`Possible values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`'incoming'`}),`: The event originated from the user and was received by the bot.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`'outgoing'`}),`: The event was generated by the bot and sent to the user.`]}),`\n`]})]}),_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The unique identifier for the event.`})}),_jsx(ResponseField,{name:`integration`,type:`string`,id:`param-integration`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/integrations/`,children:`integration`}),` that the event occurred on.`]})}),_jsxs(ResponseField,{name:`kb`,type:`object`,id:`param-kb`,children:[_jsxs(_components.p,{children:[`Information about `,_jsx(_components.a,{href:`/studio/concepts/knowledge-base/introduction`,children:`Knowledge Bases`}),` queried for the event.`]}),_jsxs(Expandable,{children:[_jsxs(ResponseField,{name:`included`,type:`Studio.KnowledgeBase.KB[]`,required:true,id:`param-included`,children:[_jsx(_components.p,{children:`Array of Knowledge Bases queried for the event.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.`})})]}),_jsxs(ResponseField,{name:`results`,type:`Studio.KnowledgeBase.ContentResult[]`,id:`param-results`,children:[_jsx(_components.p,{children:`Array of Knowledge Base results consulted for this event.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.`})})]})]})]}),_jsx(ResponseField,{name:`messageId`,type:`string`,id:`param-message-id`,children:_jsx(_components.p,{children:`The unique identifier for the current event’s message.`})}),_jsx(ResponseField,{name:`payload`,type:`object`,required:true,id:`param-payload`,children:_jsx(_components.p,{children:`The payload for the current event.`})}),_jsx(ResponseField,{name:`preview`,type:`string`,required:true,id:`param-preview`,children:_jsx(_components.p,{children:`A representation of the event in plain text. If the event is text message, this property will contain the message itself.`})}),_jsxs(ResponseField,{name:`state`,type:`EventState`,required:true,id:`param-state`,children:[_jsx(_components.p,{children:`Data related to the state of the event.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.`})})]}),_jsxs(ResponseField,{name:`tags`,type:`EventTags`,id:`param-tags`,children:[_jsx(_components.p,{children:`Any tags associated with the current event. These can contain useful data related to the integration associated with the event.`}),_jsxs(Expandable,{children:[_jsx(ResponseField,{name:`conversation`,type:`object`,id:`param-conversation`,children:_jsx(_components.p,{children:`Tags for the conversation.`})}),_jsx(ResponseField,{name:`message`,type:`object`,id:`param-message`,children:_jsx(_components.p,{children:`Tags for the message.`})}),_jsx(ResponseField,{name:`user`,type:`object`,id:`param-user`,children:_jsx(_components.p,{children:`Tags for the user.`})})]})]}),_jsxs(ResponseField,{name:`trigger`,type:`DM.Trigger`,id:`param-trigger`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/studio/concepts/triggers`,children:`Trigger`}),` that sent the event.`]}),_jsxs(Expandable,{children:[_jsx(ResponseField,{name:`conversationId`,type:`string`,id:`param-conversation-id-1`,children:_jsx(_components.p,{children:`The ID of the conversation associated with this Trigger.`})}),_jsx(ResponseField,{name:`eventName`,type:`string`,id:`param-event-name`,children:_jsx(_components.p,{children:`The name of the event that the Trigger sent.`})}),_jsx(ResponseField,{name:`flowId`,type:`string`,required:true,id:`param-flow-id`,children:_jsx(_components.p,{children:`The ID of the Workflow containing the Trigger.`})}),_jsx(ResponseField,{name:`integration`,type:`string`,id:`param-integration-1`,children:_jsx(_components.p,{children:`The integration associated with the Trigger.`})}),_jsx(ResponseField,{name:`nodeId`,type:`string`,required:true,id:`param-node-id`,children:_jsx(_components.p,{children:`The ID of the Node that contains the Trigger.`})}),_jsx(ResponseField,{name:`userId`,type:`string`,id:`param-user-id`,children:_jsx(_components.p,{children:`The ID of the user associated with this Trigger.`})})]})]}),_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsx(_components.p,{children:`The type of the event.`})}),_jsx(ResponseField,{name:`userId`,type:`string`,id:`param-user-id-1`,children:_jsx(_components.p,{children:`The user ID associated with this event.`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"light-plus","dark":"dark-plus"}},"config":{},"pageMetadata":{"title":"Event Properties","description":null,"href":"/studio/guides/advanced/event-properties"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Event properties","html":"\u003cpre class=\"shiki shiki-themes light-plus dark-plus\" style=\"background-color:#FFFFFF;--shiki-dark-bg:#0B0C0E;color:#000000;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"31\">\u003cspan class=\"line\">\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"botId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"conversationId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"createdOn\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;Date>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"direction\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;EventDirection>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"integration\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"kb\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"included\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"results\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"messageId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"payload\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"preview\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"state\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"tags\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"conversation\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"user\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"trigger\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"conversationId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"eventName\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"flowId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"integration\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"nodeId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"userId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0451A5;--shiki-dark:#9CDCFE\"> \"userId\"\u003c/span>\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#A31515;--shiki-dark:#CE9178\">\"\u0026#x3C;string>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#000000;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/docs/_mintlify/custom/botpress/23aca718097b723a/assistant.js"],"subdomain":"botpress","siteName":"Botpress","title":"Event Properties - Botpress","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-27T14:27:32.180Z","gitLastModified":"2025-11-19T22:16:11.000Z","originalFileLocation":"studio/guides/advanced/event-properties.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Botpress\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Event Properties - Botpress\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Botpress\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://botpress.com/docs/studio/guides/advanced/event-properties\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://botpress.mintlify.site/docs/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Event+Properties\u0026amp;theme=63a1c5595f8ccc36d23d20dd\u0026amp;signature=a7d7aedb35ebc5b91dc0c44019d4c55b6b9677981f15ba544a634e9cc49f39c0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Event Properties - Botpress\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://botpress.mintlify.site/docs/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Event+Properties\u0026amp;theme=63a1c5595f8ccc36d23d20dd\u0026amp;signature=a7d7aedb35ebc5b91dc0c44019d4c55b6b9677981f15ba544a634e9cc49f39c0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/botpress/3EHKtqGGIcjUKtI6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Botpress\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0090FF\">\u003cmeta data-mint-head name=\"og:logo\" content=\"/meta-assets/meta-logo.png\">\u003clink data-mint-head rel=\"canonical\" href=\"https://botpress.com/docs/studio/guides/advanced/event-properties\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/studio/guides/advanced/event-properties.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://botpress.com/#organization\",\"name\":\"Botpress\",\"url\":\"https://botpress.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/botpress/U-4GnVaxESbJOVgP/logo/light.svg?fit=max\u0026auto=format\u0026n=U-4GnVaxESbJOVgP\u0026q=85\u0026s=df22258e2155256a01174f5316ebc024\"}},{\"@type\":\"WebSite\",\"@id\":\"https://botpress.com/docs#website\",\"name\":\"Botpress\",\"url\":\"https://botpress.com/docs\",\"publisher\":{\"@id\":\"https://botpress.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://botpress.com/docs/studio/guides/advanced/event-properties#webpage\",\"url\":\"https://botpress.com/docs/studio/guides/advanced/event-properties\",\"name\":\"Event Properties\",\"dateModified\":\"2025-11-19T22:16:11.000Z\",\"isPartOf\":{\"@id\":\"https://botpress.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://botpress.com/docs/studio/guides/advanced/event-properties#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://botpress.com/docs/studio/guides/advanced/event-properties#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Studio\",\"item\":\"https://botpress.com/docs/studio/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guides\",\"item\":\"https://botpress.com/docs/studio/guides/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Advanced\",\"item\":\"https://botpress.com/docs/studio/guides/advanced/use-code\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Properties\",\"item\":\"https://botpress.com/docs/studio/guides/advanced/event-properties\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://botpress.com/docs/studio/guides/advanced/event-properties#article\",\"headline\":\"Event Properties\",\"name\":\"Event Properties\",\"url\":\"https://botpress.com/docs/studio/guides/advanced/event-properties\",\"mainEntityOfPage\":{\"@id\":\"https://botpress.com/docs/studio/guides/advanced/event-properties#webpage\"},\"dateModified\":\"2025-11-19T22:16:11.000Z\",\"publisher\":{\"@id\":\"https://botpress.com/#organization\"},\"isPartOf\":{\"@id\":\"https://botpress.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Botpress\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Botpress","nav":{"global":{"anchors":[{"anchor":"Community Discord","icon":"discord","href":"https://discord.com/invite/botpress"},{"anchor":"News \u0026 Resources","icon":"newspaper","href":"https://botpress.com/blog"}]},"tabs":[{"tab":"Docs","pages":[{"group":"Get started","pages":[{"title":"Welcome to Botpress","mode":"frame","href":""},{"title":"Quickstart","href":"/get-started/quick-start"},{"group":"Manage your agent","pages":[{"title":"Preview","href":"/get-started/manage-your-agent/preview"},{"title":"Monitor performance","href":"/get-started/manage-your-agent/monitor"},{"title":"Add knowledge sources","href":"/get-started/manage-your-agent/knowledge"},{"title":"Inspect behaviour","href":"/get-started/manage-your-agent/inspect"},{"title":"Configure Human Handoff","tag":"Plus","href":"/get-started/manage-your-agent/human-handoff"},{"title":"Edit appearance","href":"/get-started/manage-your-agent/edit-appearance"},{"title":"Control access to your agent","sidebarTitle":"Control access","tag":"Team","href":"/get-started/manage-your-agent/control-access"}]},{"title":"Configure your workspace","href":"/get-started/configure-your-workspace"}]},{"group":"ADK","pages":[{"title":"Botpress ADK","sidebarTitle":"Get started","href":"/adk"}]},{"group":"Studio","pages":[{"title":"Introduction to Studio","sidebarTitle":"Introduction","href":"/studio/introduction"},{"title":"Tutorial","href":"/tutorial"},{"group":"Concepts","pages":[{"title":"Home","icon":"house","href":"/studio/concepts/home"},{"group":"Nodes","icon":"square-mouse-pointer","pages":[{"title":"Nodes","sidebarTitle":"Introduction","href":"/studio/concepts/nodes/introduction"},{"title":"Autonomous Node","href":"/studio/concepts/nodes/autonomous-node"}]},{"group":"Cards","icon":"rows-3","pages":[{"title":"Cards","sidebarTitle":"Overview","href":"/studio/concepts/cards/introduction"},{"title":"Send Messages","href":"/studio/concepts/cards/send-messages"},{"title":"Execute Code","href":"/studio/concepts/cards/execute-code"},{"title":"Tables","href":"/studio/concepts/cards/tables"},{"title":"Set inactivity timeout","href":"/studio/concepts/cards/set-inactivity-timeout"},{"title":"Webchat","href":"/studio/concepts/cards/webchat"},{"title":"Flow Logic","href":"/studio/concepts/cards/flow-logic"},{"group":"AI","pages":[{"title":"AI","sidebarTitle":"Introduction","href":"/studio/concepts/cards/ai/introduction"},{"title":"AI Task","href":"/studio/concepts/cards/ai/ai-task"},{"title":"AI Transition","href":"/studio/concepts/cards/ai/ai-transition"},{"title":"AI Generate Text","href":"/studio/concepts/cards/ai/ai-generate-text"}]},{"title":"Capture Information","href":"/studio/concepts/cards/capture-information"},{"title":"Fixed Schedule","href":"/studio/concepts/cards/fixed-schedule"},{"title":"Agents","href":"/studio/concepts/cards/agents"},{"title":"Utilities","href":"/studio/concepts/cards/utilities"}]},{"title":"Workflows","icon":"workflow","href":"/studio/concepts/workflows"},{"group":"Knowledge Bases","icon":"book-open","pages":[{"title":"Knowledge Bases","sidebarTitle":"Overview","href":"/studio/concepts/knowledge-base/introduction"},{"title":"Add sources to Knowledge Base","sidebarTitle":"Add sources","href":"/studio/concepts/knowledge-base/add-sources"},{"title":"Knowledge Base Best Practices","sidebarTitle":"Best practices","href":"/studio/concepts/knowledge-base/knowledge-base-best-practices"}]},{"title":"Tables","icon":"table","href":"/studio/concepts/tables"},{"title":"Actions","icon":"bolt","href":"/studio/concepts/actions"},{"group":"Agents","icon":"bot","pages":[{"title":"Agents","sidebarTitle":"Introduction","href":"/studio/concepts/agents/introduction"},{"title":"Summary Agent","href":"/studio/concepts/agents/summary-agent"},{"title":"Personality Agent","href":"/studio/concepts/agents/personality-agent"},{"title":"Policy Agent","href":"/studio/concepts/agents/policy-agent"},{"title":"Translator Agent","href":"/studio/concepts/agents/translator-agent"},{"title":"Knowledge Agent","href":"/studio/concepts/agents/knowledge-agent"},{"title":"HITL Agent","href":"/studio/concepts/agents/hitl-agent"},{"title":"Vision Agent","href":"/studio/concepts/agents/vision-agent"},{"title":"Analytics Agent","href":"/studio/concepts/agents/analytics-agent"}]},{"title":"Hooks","icon":"anchor","href":"/studio/concepts/hooks"},{"title":"Hub","icon":"boxes","href":"/studio/concepts/card-hub"},{"title":"Integrations","icon":"plug","href":"/studio/concepts/integrations"},{"title":"Schemas","icon":"circle-dashed","href":"/studio/concepts/schemas"},{"title":"Versions","icon":"history","href":"/studio/concepts/versions"},{"title":"Bot Settings","icon":"settings","href":"/studio/concepts/bot-settings"},{"title":"Find","icon":"search","href":"/studio/concepts/find"},{"group":"Variables","icon":"variable","pages":[{"title":"Variables","sidebarTitle":"Overview","href":"/studio/concepts/variables/overview"},{"group":"Scopes","pages":[{"title":"Workflow variables","href":"/studio/concepts/variables/scopes/workflow"},{"title":"User variables","href":"/studio/concepts/variables/scopes/user"},{"title":"Conversation variables","href":"/studio/concepts/variables/scopes/conversation"},{"title":"Bot variables","href":"/studio/concepts/variables/scopes/bot"},{"title":"Configuration variables","href":"/studio/concepts/variables/scopes/configuration"}]},{"title":"Built-in variables","href":"/studio/concepts/variables/built-in"},{"title":"Pass variables between Workflows","sidebarTitle":"Pass between Workflows","href":"/studio/concepts/variables/pass-between-workflows"},{"title":"Use variables in code","href":"/studio/concepts/variables/in-code"}]},{"title":"Triggers","icon":"play","href":"/studio/concepts/triggers"},{"title":"Debugger, Logs \u0026 JSON","icon":"logs","href":"/studio/concepts/debugger-logs-json"},{"title":"Emulator","icon":"messages-square","href":"/studio/concepts/emulator"},{"title":"Import \u0026 Export","icon":"folder-sync","href":"/studio/concepts/import-export-bots"},{"title":"Copy to bot","icon":"copy","href":"/studio/concepts/copy-to-bot"},{"group":"Controls and Settings","icon":"wrench","pages":[{"title":"Keyboard Shortcuts","href":"/studio/concepts/controls-and-settings/keyboard-shortcuts"},{"title":"Commands","href":"/studio/concepts/controls-and-settings/studio-commands"},{"title":"Studio Preferences","href":"/studio/concepts/controls-and-settings/studio-preferences"}]}]},{"group":"Guides","pages":[{"title":"Introduction","href":"/studio/guides/introduction"},{"group":"How-to","pages":[{"title":"Translate Webchat UI","href":"/studio/guides/how-to/translate"},{"title":"Send reminders to conversations","href":"/studio/guides/how-to/send-reminders"},{"title":"Use different LLM for Autonomous Nodes","href":"/studio/guides/how-to/different-an-models"},{"title":"Track AI spend in a table","href":"/studio/guides/how-to/track-ai-spend-in-table"},{"title":"Send options as a dropdown menu","href":"/studio/guides/how-to/dropdown-menus"}]},{"group":"Advanced","pages":[{"title":"Using code in Studio","description":null,"href":"/studio/guides/advanced/use-code"},{"title":"Event Properties","href":"/studio/guides/advanced/event-properties"},{"title":"State Management","description":"Manage the 128 KB state size limit in Botpress by optimizing Workflows, clearing unused variables, and minimizing large data usage.","href":"/studio/guides/advanced/best-practices-for-state-management"},{"group":"Safety","pages":[{"title":"Safety","sidebarTitle":"Introduction","href":"/studio/guides/advanced/safety/introduction"},{"title":"Preventing Abuse","href":"/studio/guides/advanced/safety/preventing-abuse"},{"title":"Brand Safety Framework","href":"/studio/guides/advanced/safety/brand-safety-framework"}]},{"group":"Exporting Data","pages":[{"title":"Exporting Data","sidebarTitle":"Introduction","href":"/studio/guides/advanced/exporting-data/introduction"},{"title":"Raw Conversations","href":"/studio/guides/advanced/exporting-data/exporting-raw-conversations-with-the-botpress-api"},{"title":"Conversation History","href":"/studio/guides/advanced/exporting-data/getting-the-conversation-history-from-within-your-bot"},{"title":"Streaming Analytics","href":"/studio/guides/advanced/exporting-data/streaming-analytics-from-within-your-bot-with-hooks"},{"title":"Compiled Bot Analytics","href":"/studio/guides/advanced/exporting-data/exporting-compiled-bot-analytics-with-the-botpress-api"},{"title":"Accessing The Autonomous Nodes Thought Process","href":"/studio/guides/advanced/exporting-data/analyze-llmz-responses"}]},{"title":"Advanced Starter Template","href":"/studio/guides/advanced/kitchen-sink-advanced-starter-template"},{"title":"Tips to optimize AI Cost","href":"/studio/guides/advanced/tips-to-optimize-ai-cost"},{"title":"Retention Period","href":"/studio/guides/advanced/retention-period"},{"title":"Botpress v12 (and self-hosted versions)","sidebarTitle":"Botpress v12","href":"/studio/guides/advanced/v12"}]}]}]},{"group":"Integrations","pages":[{"title":"Introduction to integrations","sidebarTitle":"Introduction","href":"/integrations/get-started/introduction"},{"title":"Botpress Hub","sidebarTitle":"Hub","href":"/integrations/get-started/botpress-hub"},{"group":"Guides","pages":[{"title":"Apify (Advanced Website Crawler)","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/apify.svg","href":"/integrations/integration-guides/plus-apify"},{"title":"Apollo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/apollo.jpeg","href":"/integrations/integration-guides/apollo"},{"title":"Attio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/attio.png","href":"/integrations/integration-guides/attio"},{"title":"Asana","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/asana.svg","href":"/integrations/integration-guides/asana"},{"title":"BambooHR","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/bamboohr.svg","href":"/integrations/integration-guides/bamboohr"},{"title":"Canny","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/canny.svg","href":"/integrations/integration-guides/canny"},{"title":"Chat","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/chat.svg","href":"/integrations/integration-guides/chat"},{"title":"Chatwoot","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/chatwoot.svg","href":"/integrations/integration-guides/chatwoot"},{"title":"Discord","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/discord.svg","href":"/integrations/integration-guides/discord"},{"title":"Email Notifier","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/email-notifier.svg","href":"/integrations/integration-guides/plus-email-notifier"},{"title":"GitHub","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/github.svg","href":"/integrations/integration-guides/github"},{"title":"Gmail","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/gmail.svg","href":"/integrations/integration-guides/gmail"},{"title":"Google Analytics","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/google-analytics.svg","href":"/integrations/integration-guides/plus-google-analytics"},{"title":"Google Calendar","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/googlecalendar.svg","href":"/integrations/integration-guides/googlecalendar"},{"title":"Google Sheets","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/gsheets.svg","href":"/integrations/integration-guides/gsheets"},{"group":"HITL","icon":"/integrations/integration-guides/assets/icons/hitl.svg","pages":[{"title":"Human-in-the-Loop (HITL)","sidebarTitle":"Setup","href":"/integrations/integration-guides/hitl/introduction"},{"title":"Measure HITL Response Time","sidebarTitle":"Measure HITL Response Time","href":"/integrations/integration-guides/hitl/time-to-first-agent-response"}]},{"title":"HubSpot","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/hubspot.svg","href":"/integrations/integration-guides/hubspot"},{"title":"Hunter","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/hunter.svg","href":"/integrations/integration-guides/hunter"},{"title":"Improvement","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/improvement.svg","href":"/integrations/integration-guides/improvement"},{"title":"Instagram","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/instagram.svg","href":"/integrations/integration-guides/instagram"},{"title":"Intercom","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/intercom.svg","href":"/integrations/integration-guides/intercom"},{"title":"Klaviyo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/klaviyo.png","href":"/integrations/integration-guides/klaviyo"},{"title":"Knowledge Base Optimizer","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/knowledge-base-optimization.svg","href":"/integrations/integration-guides/knowledge-base-optimization"},{"title":"Kommo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/kommo.svg","tag":"New","href":"/integrations/integration-guides/kommo"},{"title":"Line","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/line.svg","href":"/integrations/integration-guides/line"},{"title":"Linear","icon":"https://cdn.simpleicons.org/linear/5E6AD2","href":"/integrations/integration-guides/linear"},{"title":"LinkedIn","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/linkedin.svg","tag":"New","href":"/integrations/integration-guides/linkedin"},{"title":"Loops","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/loops.svg","href":"/integrations/integration-guides/loops"},{"title":"MailerLite","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/mailerlite.svg","href":"/integrations/integration-guides/mailerlite"},{"title":"Messenger and Facebook","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/messenger-and-facebook.svg","href":"/integrations/integration-guides/messenger"},{"title":"Mintlify","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/mintlify.png","href":"/integrations/integration-guides/mintlify"},{"title":"Persat","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/persat.png","href":"/integrations/integration-guides/plus-persat"},{"title":"Microsoft Teams","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/teams.svg","href":"/integrations/integration-guides/teams"},{"title":"Notion","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/notion.png","href":"/integrations/integration-guides/notion"},{"title":"Pipedrive","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/pipedrive.svg","href":"/integrations/integration-guides/pipedrive"},{"title":"Slack","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/slack.svg","href":"/integrations/integration-guides/slack"},{"group":"Sunshine Conversation","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/sunco.svg","pages":[{"title":"Sunshine Conversations","sidebarTitle":"Introduction","href":"/integrations/integration-guides/sunshine-conversations/introduction"},{"title":"Zendesk Messaging","href":"/integrations/integration-guides/sunshine-conversations/zendesk-messaging"}]},{"title":"Telegram","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/telegram.svg","href":"/integrations/integration-guides/telegram"},{"title":"Trello","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/trello.svg","href":"/integrations/integration-guides/trello"},{"title":"Twilio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/twilio.svg","href":"/integrations/integration-guides/twilio"},{"title":"Viber","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/viber.svg","href":"/integrations/integration-guides/viber"},{"title":"Vonage","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/vonage.png","href":"/integrations/integration-guides/vonage"},{"title":"Webhook","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/webhook.svg","href":"/integrations/integration-guides/webhook"},{"title":"Workable","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/workable.svg","href":"/integrations/integration-guides/workable"},{"group":"WhatsApp","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/whatsapp.svg","pages":[{"title":"WhatsApp Setup","sidebarTitle":"Setup","href":"/integrations/integration-guides/whatsapp/introduction"},{"group":"Mapping","pages":[{"title":"Mapping from Botpress to WhatsApp","sidebarTitle":"Botpress to WhatsApp","href":"/integrations/integration-guides/whatsapp/mapping/botpress-to-whatsapp"},{"title":"Mapping from WhatsApp to Botpress","sidebarTitle":"WhatsApp to Botpress","href":"/integrations/integration-guides/whatsapp/mapping/whatsapp-to-botpress"}]},{"title":"Start a WhatsApp conversation proactively","sidebarTitle":"Start proactively","href":"/integrations/integration-guides/whatsapp/whatsapp-start-proactively"},{"title":"Start a conversation on WhatsApp through a webhook","sidebarTitle":"Start conversation through a webhook","href":"/integrations/integration-guides/whatsapp/start-conversation-through-webhook"}]},{"title":"Zapier","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/zapier.svg","href":"/integrations/integration-guides/zapier"},{"title":"Zendesk","icon":"https://mintlify.s3.us-west-1.amazonaws.com/botpress/integrations/integration-guides/assets/icons/zendesk.jpeg","href":"/integrations/integration-guides/zendesk"}]},{"group":"SDK","pages":[{"title":"Overview","href":"/integrations/sdk/overview"},{"title":"Installation","href":"/integrations/sdk/installation"},{"group":"Integrations","pages":[{"title":"Get started","href":"/integrations/sdk/integration/getting-started"},{"title":"Integration for Messaging Channels","sidebarTitle":"Messaging","href":"/integrations/sdk/integration/messaging"},{"title":"Integrations Concepts","sidebarTitle":"Concepts","href":"/integrations/sdk/integration/concepts"},{"title":"Publish your integration on Botpress Hub","sidebarTitle":"Publish on Botpress Hub","href":"/integrations/sdk/integration/publish-your-integration-on-botpress-hub"},{"title":"Enable OAuth","sidebarTitle":"Allow installing with OAuth","href":"/integrations/sdk/integration/enable-oauth"},{"title":"Use your own LLM","href":"/integrations/sdk/integration/use-your-own-llm"}]},{"group":"Interfaces","pages":[{"title":"Introduction to interfaces","sidebarTitle":"Introduction","href":"/integrations/sdk/interface/introduction"},{"title":"How to implement an interface in your integration","sidebarTitle":"How to implement interfaces","href":"/integrations/sdk/interface/how-tos/add-and-implement"},{"title":"Implementing Human in the loop (HITL) in an integration","sidebarTitle":"Implement HITL","href":"/integrations/sdk/interface/how-tos/implementing-hitl"},{"title":"Implementing unidirectional file synchronization in an integration","sidebarTitle":"Implement File Sync","href":"/integrations/sdk/interface/how-tos/implementing-file-sync"}]},{"title":"Bots-as-code","href":"/integrations/sdk/bots-as-code"},{"title":"CLI reference","href":"/integrations/sdk/cli-reference"}]}]},{"group":"Webchat","pages":[{"title":"Introduction to Webchat","sidebarTitle":"Introduction","href":"/webchat/get-started/introduction"},{"title":"Quickstart","href":"/webchat/get-started/quick-start"},{"title":"Embed Webchat in an element","sidebarTitle":"Embed in element","href":"/webchat/get-started/embed-in-element"},{"title":"Configure Webchat","href":"/webchat/get-started/configure-your-webchat"},{"group":"Interact with Webchat","pages":[{"title":"Open/close your Webchat","href":"/webchat/interact/open-close-webchat"},{"title":"Use custom toggle to open/close Webchat","sidebarTitle":"Use custom toggle","href":"/webchat/interact/use-custom-toggle"},{"title":"Display proactive bubble","href":"/webchat/interact/proactive-message-bubble"},{"title":"Automatically open Webchat on page load","href":"/webchat/interact/open-webchat-on-page-load"},{"title":"Send user data","href":"/webchat/interact/send-user-data"},{"title":"Listen to events","href":"/webchat/interact/listen-to-events"},{"title":"Trigger actions when conversation starts","sidebarTitle":"Trigger actions on start","href":"/webchat/interact/start-trigger"},{"title":"Display notification bubble","href":"/webchat/interact/webchat-notification"},{"title":"Send a message from user","href":"/webchat/interact/send-message"},{"group":"Send custom events","pages":[{"title":"Send custom events from Webchat to your website","sidebarTitle":"From Webchat to your website","href":"/webchat/interact/send-custom-events/from-webchat"},{"title":"Send custom events from your website to Webchat","sidebarTitle":"From your website to Webchat","href":"/webchat/interact/send-custom-events/to-webchat"}]},{"title":"Update Webchat configuration","href":"/webchat/interact/update-config"},{"title":"Error handling","href":"/webchat/interact/error-handling"},{"title":"Webchat methods reference","sidebarTitle":"Methods reference","href":"/webchat/interact/reference"}]},{"group":"Integrations","pages":[{"title":"WordPress","href":"/webchat/integrations/wordpress"},{"title":"Wix","href":"/webchat/integrations/wix"},{"title":"Webflow","href":"/webchat/integrations/webflow"},{"title":"React Native","href":"/webchat/integrations/react-native"}]},{"group":"React library","pages":[{"title":"Get started","sidebarTitle":"Get started","href":"/webchat/react-library/get-started"},{"group":"Components","pages":[{"title":"Webchat","href":"/webchat/react-library/components/webchat"},{"title":"Floating Action Button","sidebarTitle":"Fab","href":"/webchat/react-library/components/fab"},{"title":"Container","href":"/webchat/react-library/components/container"},{"title":"Header","href":"/webchat/react-library/components/header"},{"title":"MessageList","href":"/webchat/react-library/components/message-list"},{"title":"Composer","href":"/webchat/react-library/components/composer"},{"title":"StylesheetProvider","href":"/webchat/react-library/components/stylesheet-provider"}]},{"group":"Hooks","pages":[{"title":"useWebchat","href":"/webchat/react-library/hooks/use-webchat-client"}]}]}]},{"group":"Botpress Desk","pages":[{"title":"Introduction to Botpress Desk","sidebarTitle":"Introduction","href":"/desk/introduction"}]}]},{"tab":"ADK","pages":[{"title":"ADK","href":"/adk/introduction"}]},{"tab":"Botpress Desk","href":"https://desk.support.channel"},{"tab":"Tutorial","pages":[{"title":"Tutorial","href":"/tutorial/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Event Properties - Botpress","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":["2b790eda92"],"chunks":["ApiExamples-Ch-SJE05.js","utils-BqFiXZ79.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-CnR4QBe6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CqqG_0NE.js","shallow-BXrZ2b0C.js","snippetPresets-x-8ACO8V.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-n7J_wkjq.js","CodeSnippet-CQsp4vyQ.js","CodeSnippets-BfuHqvZx.js"]}