Skip to main content
Version: 2026.2

Pre-Response Events

Pimcore Copilot is a Pimcore Studio plugin backed by Studio Backend API endpoints. Before one of those endpoints returns its response, the bundle dispatches a pre-response event carrying the response DTO. Subscribe to the event to read from or add data to that DTO before it is sent to the client.

All events are declared under Pimcore\Bundle\CopilotBundle\Event\PreResponse and extend Pimcore\Bundle\StudioBackendBundle\Event\AbstractPreResponseEvent. Each event class exposes a getter for the DTO it carries (for example getAction()), and AbstractPreResponseEvent itself provides addAdditionalAttribute(), getAdditionalAttribute(), hasAdditionalAttribute() and removeAdditionalAttribute() to attach arbitrary key-value data to the response. See the Studio Backend Additional and Custom Attributes documentation for the general listener pattern and a worked subscriber example.

warning

The Studio Backend API endpoints themselves are not a supported public API. Their controllers are marked @internal and may change in any release without a deprecation path. Do not build integrations against the endpoints directly; use these events instead.

Actions

Event classEvent nameDispatched whenDTO
ActionsEventpre_response.copilot.actionsOnce per action, before the list of available Copilot actions is returned.Action

Automation action configuration

Event classEvent nameDispatched whenDTO
AutomationActionCreatedEventpre_response.copilot.automation_action_createdA new automation action configuration was created.AutomationActionCreated
AutomationActionConfigurationEventpre_response.copilot.automation_action_configurationA single automation action configuration is read.AutomationActionConfiguration
AutomationActionEnvironmentTypeEventpre_response.copilot.automation_action_environment_typeOnce per registered environment variable type, before the type list is returned.AutomationActionEnvironmentType
AutomationActionEnvironmentInlineHelpEventpre_response.copilot.automation_action_environment_inline_helpThe inline help content for environment variable types is returned.AutomationActionEnvironmentInlineHelp
AutomationActionPostInteractionEventpre_response.copilot.automation_action_post_interactionThe list of available post-interaction types is returned.AutomationActionPostInteraction
AutomationActionPreconditionFilterEventpre_response.copilot.automation_action_precondition_filterOnce per registered precondition filter, before the filter list is returned.AutomationActionPreconditionFilter
AutomationActionStepImplementationEventpre_response.copilot.automation_action_step_implementationThe list of available step implementations is returned.AutomationActionStepImplementation
AutomationActionStepImplementationInlineHelpEventpre_response.copilot.automation_action_step_implementation_inline_helpThe inline help content for step implementations is returned.AutomationActionStepImplementationInlineHelp

Interaction action configuration

Event classEvent nameDispatched whenDTO
InteractionActionCreatedEventpre_response.copilot.interaction_action_createdA new interaction action configuration was created.InteractionActionCreated
InteractionActionConfigurationEventpre_response.copilot.interaction_action_configurationA single interaction action configuration is read.InteractionActionConfiguration
InteractionActionTypeEventpre_response.copilot.interaction_action_typeOnce per registered interaction type, before the type list is returned.InteractionActionType
InteractionActionInlineHelpEventpre_response.copilot.interaction_action_inline_helpThe inline help content for interaction types is returned.InteractionActionInlineHelp

Interaction action runtime

Dispatched while a chat or one-step interaction is executed. See Extending Interaction Actions for background on interaction types.

Event classEvent nameDispatched whenDTO
InteractionActionChatHistoryEventpre_response.copilot.interaction_action_chat_historyOnce per chat history entry, when the initial or follow-up step of a chat interaction returns its history.InteractionActionChatHistory
InteractionActionOneStepEventpre_response.copilot.interaction_action_one_stepA one-step interaction has produced its result.InteractionActionOneStep

Job runs

Event classEvent nameDispatched whenDTO
CopilotJobRunIdEventpre_response.copilot.job_run_idAn automation action was launched and its job run ID is returned.CopilotJobRunId
JobRunEventpre_response.copilot.job_runsOnce per job run, when a job run list is returned or a job run is rerun.CopilotJobRun
JobRunProgressEventpre_response.copilot.job_runs.progressThe progress of a job run is returned.CopilotJobRunProgress

Configuration and context

Event classEvent nameDispatched whenDTO
ConfigurationTreeNodeEventpre_response.copilot.configuration_tree_nodeOnce per node, when the configuration tree (automation and interaction actions) is returned.ConfigurationTreeNode
ConfigurationImportEventpre_response.copilot.configuration_importA configuration was imported.ConfigurationImport
ConfigurationEventDefinitionEventpre_response.copilot.configuration_eventOnce per available workflow or core event, when the list of events usable as automation action triggers is returned.ConfigurationEventDefinition
ContextLimitationEventpre_response.copilot.context_limitationOnce per entry, when the list of available context limitations is returned.ContextLimitation

Data objects and workflows

Event classEvent nameDispatched whenDTO
DataObjectClassDefinitionEventpre_response.copilot.data_object_class_definitionOnce per data object class, when the list of class definitions is returned.DataObjectClassDefinition
WorkflowEventpre_response.copilot.workflowOnce per workflow, when the list of workflows is returned.CopilotWorkflow

Permissions

Event classEvent nameDispatched whenDTO
PermissionGridEntryEventpre_response.copilot.permission_grid_entryOnce per user or role entry, when the permission grid is returned.PermissionGridEntry