ContentRunner User Upsert
AI-generatedSummary
Insert or update a user in the PostgreSQL users table, using Telegram chat ID as the conflict key. If Customer.io credentials are configured, also send a person identify request without waiting for its result.
Inputs
- Telegram Chat ID (required) — Unique chat ID; defaults to
parsed.from_id, thenparsed.chat_id, thentg_chat_idfrom the input item. - Username — Telegram username; defaults to
parsed.from_usernameortg_username. - First Name — Defaults to
parsed.from_first_nameorfirst_name. - Last Name — Defaults to
parsed.from_last_nameorlast_name. - Language Code — User language, such as
enorru; defaults toparsed.from_language_codeorlanguage_code. - Shared Contact — Phone number from a shared contact; defaults to
parsed.contact_phone_numberorshared_contact.
Output shape
One item per input item, containing the inserted or updated database row.
On conflict for
tg_chat_id, non-null supplied profile values update the existing row; missing values preserve stored values. Requires Content Runner PostgreSQL credentials. Customer.io tracking is optional; when configured, the node identifiestg_<Telegram user ID>usingparsed.from_id, thenfrom_id, then the chat ID, and sends username, phone, and Telegram ID attributes. With Continue On Fail enabled, item errors are returned as{ "error": "..." }items.