---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Kafka Producer step

# Kafka Producer step {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Kafka Producer step

The Kafka Producer step is a Workflow Studio action step in ServiceNow that allows you to publish events to a Kafka topic within your environment.
It requires a Stream Connect subscription and the Stream Connect Installer plugin.
This step is designed for users with theactiondesignerrole to create custom actions involving Kafka event publishing.
Show full answer Show less  

## Key Features

* **Topic Alias:** Select a unique topic alias that maps to an underlying Hermes or Direct Kafka topic to publish messages.
* **Message:** Enter the text content of the message you want to send.
* **Key:** Specify a key to ensure messages with the same key are stored in the same partition, which is useful for grouping related messages.
* **Headers:** Add message headers as name-value pairs, with support for static values or dynamic data pills.
* **Wait For Completion:** Optionally configure the flow to wait for the Kafka Producer step to complete before proceeding.
* **Schema:** Reference a schema to validate the message structure; the message must conform to the selected schema.
* **If this step fails:** Choose whether to stop the action and evaluate the error or continue to the next step despite failure. Error information is always captured in the Step Status object.

## Outputs

* **Step Status:** Provides runtime details about the execution of the step, including:
  * **Code:** An integer indicating success (0) or error (1) of the step.
  * **Message:** A string containing any error message or system operation feedback.

## Practical Application

ServiceNow customers can use the Kafka Producer step to integrate their workflows with Kafka topics for event-driven automation. For example, you can send messages about incident creation to a Kafka topic, ensuring related data is partitioned and structured per schema requirements. This enables scalable, real-time data streaming and integration with external systems.  
Create an action that publishes events to a topic in your Kafka environment.

## Roles and availability {#kafka-producer-action-designer__section_uqv_nbp_frb}

The Kafka Producer step is an Workflow Studio action step. Users with the
action_designer role can create a custom action with one or more action steps.

This step is requires a Stream Connect subscription. For more information, see <https://www.servicenow.com/now-platform/workflow-data-fabric.html>.

This step requires the ServiceNow Stream Connect Installer \[com.glide.hub.stream_connect.installer\] plugin.

## Fields {#kafka-producer-action-designer__section_gqs_4bp_frb}

{#kafka-producer-action-designer__table_sxk_5bp_frb__entry__2}

| Field | Description |
|-|-|
| Topic Alias | Name of the topic alias for the topic you want to publish messages to. A topic alias is a unique topic name that can be connected to any underlying Hermes or Direct Kafka topic. Select a topic alias from the drop-down list. |
| Message | Text of the message. |
| Key | Name of the key for a specific partition. Topics can be partitioned. Messages with the same key are stored in the same partition. For example, payment messages with a key of June would all be stored in the same partition of the Payments topic. |
| Headers | Headers for the message, in name-value pairs. For both the Name and Value fields, you can enter a value or use a data pill. |
| Wait For Completion | Option to require the flow to wait for the step to complete before continuing. |
| Schema | Reference to a schema table. Select a schema from the list. For information on schemas, see [Schema management in Stream Connect](https://www.servicenow.com/docs/access?context=schema-management&version=brazil&pubname=brazil-integrate-applications&ft:locale=en-US). Note: The message you're sending in the Message field must adhere to the structure of the selected schema. |
| If this step fails | Option to go to error evaluation or continue running the next step. This option has no effect on the Step Status. Select one of the following. * Stop the action and go to error evaluation: Stop running the action at the current step and go to error evaluation. The Step Status object contains the error information returned by the step. * Don't stop the action and go to the next step: Ignore the failure and continue running the action from the next step. The Step Status object contains the error information returned by the step. Action error evaluation runs regardless of whether the action continues running. {#kafka-producer-action-designer__ul_mk3_bkw_frb} |
[ ]

{#kafka-producer-action-designer__table_sxk_5bp_frb}

## Example {#kafka-producer-action-designer__section_ekk_pbp_frb}

In this example, the step sends a message recording the creation of an incident. The message includes an incident identifier, a description, and a message header. The message is sent to the incidents topic, and stored in the
partition with the name of the incident identifier.

## Outputs {#kafka-producer-action-designer__section_dqw_pbp_frb}

{#kafka-producer-action-designer__table_ulc_wbp_frb__entry__3}

| Field | Description | Data Type |
|-|-|-|
| Step Status | Object data pill containing runtime details about the step. Each step in an action returns a Step Status. | Object |
| Step Status \> Code | Integer data pill indicating whether the step produced an error. By default, a value of 1 indicates that the step produced an error. A value of 0 indicates that the step ran successfully. You can't customize these codes. | Integer |
| Step Status \> Message | String data pill containing the error message produced by the step or system operation. You can't customize this message. | String |
[ ]

{#kafka-producer-action-designer__table_ulc_wbp_frb}

