Pega Marketing agents
On top of the standard Pega Platform agents, a set of agents exist that manage the different aspects of Pega Marketing. Review and monitor these agents on a regular basis to ensure that your application is running optimally. In the event of a failure in any of the agents, understanding the agent's role helps to assess the impact of the failure on the application.
The following tables contain descriptions of these agents, which is divided based on the part of the application that the agent is used in. For each of the agents listed, the Multi-node column contains a recommendation on whether the agent should be run on multiple nodes, based on the purpose of the agent and how it scales for performance.
- Segmentation agents - manage running segments
- Offer runtime agents - manage running offers and real-time events
- Delivery channels agents - manage delivery channels, such as email and SMS
- Paid media agents - manage advertising on ad platforms such as Facebook Ads or Google Ads.
- Cleanup and data-mining agents - clean up batch assets that are created while running a program; perform data mining
- Startup and maintenance agent - handles routines, maintenance, and checks that must occur during application server startup
Handles requests to manually run a segment from the Segment rule form. If there are many manual requests for larger segments, then having this agent running on multiple nodes speeds up segment runtime.
Queue items for this agent are instances of the System-Queue-DeferredSegments class.
If there are Broken-Process queue items for this agent, marketers might experience failures or delays in their segments. Review the details on the queue item to determine the cause of the failure.
Manages the scheduled run of segments, which is configured in the Options and Schedule tab of the Segment rule form. If there are recurring runs, the agent auto-manages its own queue items. There should be only one queue item per segment at any given point in time.
Queue items for this agent are instances of the System-Queue-ScheduledTask class with the Agent Name set to PegaMKT-Engine:SegmentSchedule.
Broken-Process queue items for this agent imply failures in scheduled running of segment. Consequently, these segments might have stale or incomplete data.
|AnalysisSchedule||Yes||Similar functionality to the SegmentSchedule agent, but instead of segments, it runs Analysis Project rules according to the schedule.|
|ManageMasterSegment||Keeps the Master Segment view in sync with all the segments currently created in the system. The Master Segment is used by Pega Marketing 8.2 and older to support the segment filter functionality. In Pega Marketing 8.3, this agent still exists but is no longer used for segment filter support.|
|ProcessOverlayAction||Yes||Performs background processing of the Update wait time and Stop offers actions on the Offer rule. For more information, see Monitoring Waiting Offers in the Pega Marketing User Guide on the Pega Marketing product page.|
Initiates a campaign run at runtime. The agent creates the necessary infrastructure, such as batch classes and tables, and executes the strategy based on the segment input population that is configured. If configured on the campaign, it also triggers the refresh/rerun of the segment before starting a strategy. In a non-partitioned environment, this agent applies volume constraints.
Queue items for this agent are instances of the System-Queue-ProgramRun class.
If the Campaign Run work object does not show any progress for a long time, review the status of this agent and its associated queue items.
Handles the processing of received real-time events. The agent reads the list of received events from a staging table, processes them, and then removes them from the table.
Processing an event involves:
Event campaigns use the MKT_EVENT_P<ProgramID> tables instead of the batch output tables.
This agent is only available if Field Marketing is available as part of your Pega Marketing application.
Executes the offers for the selected list of customers in a Field Marketing campaign.
Triggers an Offer flow for the WaitExpired paths in an Offer flow. Every campaign run creates one or more (if partitioned) of these queue items to periodically scan the batch table for records whose wait duration has expired. If any such offers are found, this agent resumes their processing along the WaitExpired path.
Queue items for this agent are instances of the System-Queue-WaitFlow class.
When Offers are initiated in a non-batch scenario (such as Inbound), the records are stored in the MKT_DATA_OFFER table in the data schema. This agent scans through such Offers to find any that have expired and resumes their processing along the WaitExpired path.
Queue items for this agent are instances of the System-Queue-GenericWaitFlow class.
|RunHandleResponsesDF||Supports updating the adaptive model responses based on the stages and timeouts configured in the outcome optimization configuration. The agent checks if a real-time data flow run is in progress for the pxHandleResponses data flow. If not, it creates one and starts the data flow run.|
|SendEmailsInBulk||No||Periodically reads the email output table PR_DATA_CORR_EMAIL and performs email transmission. The agent removes successfully transmitted emails and, in the event of a failure, updates the status to Failed.|
|MonitorChannelQueue||Yes||Updates the log file used to monitor the email queue. Pega Marketing can log sent, failed, and queued emails, as well as the queue depth, that is, the emails which have not been processed yet. By default, the agent updates the log file at one-hour (3600 seconds) intervals.|
|SendSMSInBulk||No||Periodically reads the SMS output table PR_DATA_CORR_SMS and performs SMS transmission. The agent interfaces with the configured SMSC and transmits the SMS message. In the event of a failure, the agent removes any successfully transmitted SMS messages and updates the status to Failed.|
|InboundSMSReceiver||No||Periodically sets up listeners to handle inbound SMS messages for the configured Inbound SMS Accounts. The agent calls the InboundConnector activity to set up the listener. For each message that is received, the agent creates a new instance of PegaMKT-Data-Inbound-SMS, populates the appropriate details, and saves it to the database.|
|InboundSMSOfferFlow||No||Processes instances of PegaMKT-Data-Inbound-SMS. For each message, the agent determines the relevant Customer and SMS Account context, parses the inbound message based on the SMS Account configuration, uses this information to determine the behavior and Offer, and (if appropriate) initiates/resumes the offer.|
|OutboundMaster||No||A master outbound agent that determines which File/Database Templates need to be processed, and then creates queue items for the WriteOutboundAgent to process them.|
|WriteOutboundAgent||Yes||A standard agent that performs File and Database output processing based on the details in the queue item created by the OutboundMaster agent. WriteOutboundAgent processes records from the MKT_OUTBOUND_STAGING table in the Pega Marketing (PM) schema.|
|FileDBSchedule||Yes||Performs the scheduled finalization for the File and Database output channels.|
|PushNotificationMaster||No||Periodically checks the push notifications table PR_DATA_PUSH_MESSAGE to create new queue items for the PushNotificationProcessor agent in order to transmit notification messages. Each queue item corresponds to a (logically simulated) partition value in the table.|
|PushNotificationProcessor||Yes||Processes messages that are part of a specific partition in the PR_DATA_PUSH_MESSAGE table. The agent transmits these messages based on the configurations for the Push Notification App and Variant (specified on the Push Notifications landing page).|
|APNs Feedback Service||No||Uses the Apple APNs Feedback service to periodically retrieve uninstalled push tokens and calls Pega Marketing's Push Notification Un-registration service to remove these uninstalled push tokens from the registered list.|
|Agent Name||Multi-node||Description||When to enable|
|ProcessPaidMediaRuns||Yes||Initiates a paid media run for paid media queue items created by campaign runs when paid destinations are configured in the Next-Best-Action hierarchy. After the paid media run starts, data flows are created for each paid destination in the hierarchy. Once all data flow runs are either completed or failed, work objects are created for any errors that occurred during the run. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||After you configure paid destinations in the Next-Best-Action hierarchy.|
|ProcessPaidSegmentRuns||Yes||Initiates a paid segment synchronization after the refresh of a segment that has paid destinations enabled. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||After you configure any paid segment synchronization.|
|ProcessPaidMediaReSync||Yes||Processes the resynchronization queue for paid destinations. Resynchronization queue items are created for each update to the PII mappings used by Paid Media Manager or to an invididual's PII values, such as an email address, phone number, or device ID. The ProcessPaidMediaReSync agent processes the queue item and triggers the resynchronization for the right destination. By default, this agent runs every 5 seconds. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||After you configure any paid destinations.|
|PaidMediaArtifactsMaster||No||Creates one queue item for each destination where you enabled automatic campaign generation. PaidMediaArtifactsGenerator must be enabled to process the queue items created by this agent. By default, this agent runs every 30 minutes. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||If you enabled automatic campaign generation in the paid destination settings.|
|PaidMediaArtifactsGenerator||Yes||Creates Facebook Ads and Google Ads lookalike audiences as well as campaign and ad set scaffoldings. By default, this agent runs every 30 seconds and processes any queue items created by PaidMediaArtifactsMaster. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||If you enabled automatic campaign generation in the paid destination settings.|
|PaidCustomerReSyncMaster||No||Identifies the changes in individual PII data, such as email addresses and phone numbers. If you update an individual's email address or phone number, at the next agent run, the agent triggers a re-synchronization of customer data. For each unique paid destination, the agent creates one CustomerReSync data flow run. Outbound, real-time and segment-based paid audience synchronization is postponed while the CustomerReSync data flow runs. If a synchronization is in progress, the CustomerReSync data flow for that destination is postponed until the current synchronization is completed. By default, this agent runs once every 7 days. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||After you configure any paid destinations.|
|UpdatePaidMediaMatchRate||No||Updates the match rates for paid audiences visible on the Paid Audiences landing page. By default, this agent runs once every hour. For more information, see Paid Media Manager in the Pega Marketing User Guide on the Pega Marketing product page.||After you configure any paid destinations.|
Paid media job schedulers
|Job Scheduler Name||Description||When to enable|
|PaidNotificationsGenerator||Creates error and notification work objects. By default, this scheduler runs once every hour.||After you configure any paid destinations. For more information, see "Implementing Paid Media Manager" in the in the Pega Marketing Implementation Guide on the Pega Marketing product page.|
|PaidMediaESCheckAndReindex||Checks the paid media master records count in the database table and ES index. If there are any conflicts, the schedule reindexes the ES index with records from the master database table.||If you enabled full text search on the Search landing page. For more information, see "Enabling elastic search for Paid Media Manager" in the in the Pega Marketing Implementation Guide on the Pega Marketing product page.|
|TokenValidityChecker||Checks the validity of the tokens used to communicate with paid destinations. If the token is expired or invalid, the scheduler creates an error work object with the default urgency of 80, and displays a notification in the notifications section of Next-Best-Action Designer. For segment synchronization, the notification is displayed in the notifications section of the Paid Sync tab of the segment.||After you configure any paid destinations. For more information, see "Implementing Paid Media Manager" in the in the Pega Marketing Implementation Guide on the Pega Marketing product page.|
|OfflineConversionRTTrigger||Runs at regular intervals to read the real time offline events from the synchronization staging table and synchronize them to the network. By default, this job scheduler runs once every hour.||When you want to synchronize the offline events captured through CaptureResponse REST API to the network For more information, see "Using offline conversion push to improve re-targeting with data from real-world interactions" in the in the Pega Marketing Implementation Guide on the Pega Marketing product page.|
|After you configure any paid destinations. For more information, see "Implementing Paid Media Manager" in the in the Pega Marketing Implementation Guide on the Pega Marketing product page.|
Cleans up batch assets, such as classes and tables, that are created while running a program. A cleanup occurs when the following conditions have been met:
Additionally, the ProcessPurging agent configuration uses the MKTPurgeMaxRecords setting to determine the maximum number of records that may be purged during a cleanup. By default, the maximum number of purged records is set to 100. To change the default value, you first need to add this setting to the Dynamic System Settings list, and then set the new maximum number.
This agent is only available if Field Marketing is available as part of your Pega Marketing application.
Performs data mining by periodically refreshing a materialized view in the database to summarize the Interaction History data for Field Marketing reporting purposes.
|PegaMKTStartupAgent||Yes||Handles routines, maintenance, and checks that need to occur during the application server startup. The agent can be used for data instance re-sets or for whenever something must be done during node startup.|