Skip to content
Components Updated November 27, 2026

Generic Writer Configuration Examples

Copy sample Generic Writer configurations that iterate over rows, send batch events to Exponea, user events to Customer.io and notifications to Slack.

These sample Generic Writer configurations show the JSON for four cases, and two of them also show an input table and the request it produces. Generic Writer Configuration describes every option they use.

Before you start

You need

  • A configuration of the Generic data destination connector to paste the JSON into.
  • Exactly one Storage table in the configuration’s input mapping, with the columns the example’s placeholders and mapping use, for example id for the iterations example, user_id for Customer.io, and channel and text for Slack. With more than one table, the writer uses only the first.
  • For Bloomreach Engagement, your API base URL and project token (Project settings → Access management → API), and a private API key ID and secret whose group can set events (Events → Set). The example joins them as key_id:secret and base64-encodes the pair for Basic authentication (opens in a new tab). Secrets go in encrypted # parameters.
  • For Customer.io, a site ID and Track API (opens in a new tab) key, which the example sends with Basic authentication. For an account in the EU region, change base_url to https://track-eu.customer.io (opens in a new tab).
  • For Slack, a bot token (xoxb-) with the chat:write (opens in a new tab) scope, and the app added to each target channel (or the chat:write.public scope for public channels).
  • The Keboola IP addresses of your stack on the API’s allow list, if the target API accepts calls only from known addresses.

What each tab needs

  • Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
  • UI tab a browser.
  • CLI / API tab kbagent, connected to your project. The checks only read.

This configuration sends the POST request to https://example.com/test/[[id]] where [[id]] is a column expected in the input table. It will send as many requests as there are rows in the input table. Each request object is wrapped in {"data":{}} object.

{
"api": {
"base_url": "https://example.com"
},
"user_parameters": {
"date": {
"function": "concat",
"args": [
{
"function": "string_to_date",
"args": [
"yesterday",
"%Y-%m-%d"
]
},
"T"
]
}
},
"request_parameters": {
"method": "POST",
"endpoint_path": "/test/[[id]]",
"headers": {
"Content-Type": "application/json"
},
"query_parameters": {
"date": {
"attr": "date"
}
}
},
"request_content": {
"content_type": "JSON",
"json_mapping": {
"nesting_delimiter": "_",
"chunk_size": 1,
"column_data_types": {
"autodetect": true
},
"request_data_wrapper": "{ \"data\": [[data]]}",
"column_names_override": {}
},
"iterate_by_columns": [
"id"
]
}
}

Write customer events (opens in a new tab) into the Bloomreach Engagement (formerly Exponea) tracking API (opens in a new tab) in batches (opens in a new tab) of 3 requests.

Writer config:

{
"debug": false,
"api": {
"base_url": "https://api-demoapp.exponea.com"
},
"user_parameters": {
"#token": "12345",
"token_encoded": {
"function": "concat",
"args": [
"Basic ",
{
"function": "base64_encode",
"args": [
{
"attr": "#token"
}
]
}
]
}
},
"request_parameters": {
"method": "POST",
"endpoint_path": "/track/v2/projects/1234566/batch",
"headers": {
"Authorization": {
"attr": "token_encoded"
},
"Content-type": "application/json"
}
},
"request_content": {
"content_type": "JSON",
"json_mapping": {
"nesting_delimiter": "__",
"chunk_size": 3,
"column_data_types": {
"autodetect": true
},
"request_data_wrapper": "{\"commands\":[[data]]}"
}
}
}

Input table:

namedata__customer_ids__registereddata__properties__pricedata__timestampdata__event_typedata__properties__test
customers/eventsmilan@test.com150123456.78testing_eventa
customers/eventspetr@test.com150123456.78testing_eventa
customers/eventsmasha@test.com150123456.78testing_eventa

Result request:

{
"commands": [{
"name": "customers/events",
"data": {
"customer_ids": {
"registered": "milan@test.com"
},
"properties": {
"price": 150,
"test": "a"
},
"timestamp": 123456.78,
"event_type": "testing_event"
}
}, {
"name": "customers/events",
"data": {
"customer_ids": {
"registered": "petr@test.com"
},
"properties": {
"price": 150,
"test": "a"
},
"timestamp": 123456.78,
"event_type": "testing_event"
}
}, {
"name": "customers/events",
"data": {
"customer_ids": {
"registered": "masha@test.com"
},
"properties": {
"price": 150,
"test": "a"
},
"timestamp": 123456.78,
"event_type": "testing_event"
}
}
]
}

Update user events via the Customer.io Track API (opens in a new tab) based on the user_id column.

The API uses Basic http authentication.

Writer config:

{
"api": {
"base_url": "https://track.customer.io",
"authentication": {
"type": "BasicHttp",
"parameters": {
"username": "test_user",
"#password": "pass"
}
}
},
"user_parameters": {},
"request_parameters": {
"method": "POST",
"endpoint_path": "/api/v1/customers/[[user_id]]/events",
"headers": {
"Content-type": "application/json"
}
},
"request_content": {
"content_type": "JSON",
"json_mapping": {
"nesting_delimiter": "_",
"chunk_size": 1,
"column_data_types": {
"autodetect": true
},
"request_data_wrapper": "",
"column_names_override": {}
},
"iterate_by_columns": [
"user_id"
]
}
}

Input Table:

user_iddata_pricedata_datename
a@test.com1501.1.20testing_event
petr@test.com1501.1.20testing_event
masha@test.com1501.1.20testing_event

Json request:

For each row in the input one request:

POST https://track.customer.io/api/v1/customers/a@test.com/events

{"data": {"price": 150, "date": "1.1.20"}, "name": "testing_event"}

Send notifications to Slack channels through the Slack API.

Input Table:

channeltext
AC098098Hello
AC092131World

Configuration:

{
"debug": false,
"api": {
"base_url": "https://slack.com"
},
"user_parameters": {
"#token": "",
"token_encoded": {
"function": "concat",
"args": [
"Bearer ",
{
"attr": "#token"
}
]
}
},
"request_parameters": {
"method": "POST",
"endpoint_path": "/api/chat.postMessage",
"headers": {
"Authorization": {
"attr": "token_encoded"
},
"Content-type": "application/json"
}
},
"request_content": {
"content_type": "JSON",
"json_mapping": {
"nesting_delimiter": "_",
"chunk_size": 1,
"column_data_types": {
"autodetect": true
},
"request_data_wrapper": ""
}
}
}

Don’t forget to Save the configuration, then click Run Component.

Check:

Prompt
Did the last job of the Generic data destination configuration my-generic-config end with success? Give its end time.

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.