GCDev

Mateus Giordani

Mid-level Developer · Technical leadership on Qualtrics integrations

I design data pipelines that translate business rules into reliable flows: from SQL modeling and Python audience preparation to API dispatch and response reconciliation.

Architecture · Qualtrics end-to-end
Synthetic sample data200 OK · Idempotent
End-to-end Qualtrics integration architectureTechnical diagram with six closed-loop stages: Internal databases (SQL/ERP), Python Rules & ETL, Qualtrics API (Contacts / Directory), Distributions (Email / Links), Webhooks / Export, and Responses back to tables, using synthetic sample data (cohort_id: 2026-Q4-SAMPLE).Outbound · Preparation & dispatchClosed loop · Distribution & returnSQLAPIXMD TriggerJSONDWLog · Eligibility1 · SQL / ERPSourceInternal databasesNPS, CSAT & RM evalrows: 1,242 · opt_out: 02 · Python ETLRulesPython Rules & ETLSHA-256 + dispatch_logdedup: 42 · valid: 1,2003 · Qualtrics API200 OKContacts / DirectoryPOST /contacts + RetryextRef · dispatch_log4 · DistributionsXMEmail & LinksNPS · CSAT · RM dispatchsent: 1,200 · bounce: 0.4%5 · Webhooks / ExportReturnResponse collectionJSON stream + backoffevents: 412 · schema: ok6 · DW / SQL FactSyncedResponses to tablesReconcile by cohort_idreconciled: 412 · nps: 781. Internal DBs (SQL / ERP)NPS, CSAT & RM eligibilityrows: 1,242 · opt_out: 02. Python Rules & ETLNormalization & SHA-256 hashdedup_skipped: 42 · valid: 1,2003. Qualtrics API (Contacts)POST /mailinglists · extRef + logstatus: 200 OK · backoff active4. Distributions (Email / Links)XM flows for NPS, CSAT & RMsent: 1,200 · bounce: 0.4%5. Webhooks / ExportContinuous JSON collectionevents: 412 · schema: valid6. Responses back to tablesDW reconciliation by cohort_idreconciled: 412 · nps_ex: 78
cohort_id"2026-Q4-SAMPLE"
batch_dispatched1,200 / 1,242
retry_policyexp_backoff (429/5xx)
responses_synced412 · reconciled
End-to-end flow using synthetic payloads (cohort_id: 2026-Q4-SAMPLE) from audience selection to response reconciliation.

Qualtrics integration in production

Closed-loop architecture for NPS, CSAT, and relationship-manager service evaluation surveys.

A cooperative financial institution needed to prepare survey audiences according to business rules and bring responses back into internal databases. The pipeline serves NPS, CSAT, and relationship-manager evaluations.

  • Python
  • SQL / Modeling
  • Qualtrics API
  • ETL
  • Idempotency
  • Webhooks

Stage 1 — Ingestion and eligibility

SQL/ERP extraction enforcing business eligibility rules and deduplication per survey type.

eligibility_query.sql · Synthetic sample
-- Eligibility with 90-day quarantine (synthetic)
SELECT
  '2026-Q4-SAMPLE' AS cohort_id,
  acc.synthetic_member_key,
  evt.survey_type
FROM dw_staging.sample_interactions AS evt
JOIN dw_core.sample_accounts AS acc ON acc.account_ref = evt.account_ref
WHERE acc.opt_out_flag = FALSE;
View full code
eligibility_query.sql · Synthetic sample
-- Synthetic example: no real institution schema or PII
WITH eligible_accounts AS (
  SELECT
    acc.synthetic_member_key,
    evt.interaction_channel,
    evt.event_timestamp,
    ROW_NUMBER() OVER (
      PARTITION BY acc.synthetic_member_key, evt.survey_type
      ORDER BY evt.event_timestamp DESC
    ) AS rn
  FROM dw_staging.sample_interactions AS evt
  INNER JOIN dw_core.sample_accounts AS acc
    ON acc.account_ref = evt.account_ref
  LEFT JOIN integration.qualtrics_dispatch_log AS log
    ON log.synthetic_member_key = acc.synthetic_member_key
   AND log.survey_type = evt.survey_type
   AND log.dispatched_at >= CURRENT_TIMESTAMP - INTERVAL '90 days'
  WHERE evt.survey_type IN ('NPS', 'CSAT', 'RM_EVAL')
    AND acc.opt_out_flag = FALSE
    AND log.dispatch_id IS NULL
)
SELECT
  '2026-Q4-SAMPLE' AS cohort_id,
  synthetic_member_key,
  interaction_channel
FROM eligible_accounts
WHERE rn = 1;

Stage 2 — Modeling and Python rules

Designed the integration database schema and implemented Python audience preparation pipelines.

prepare_cohort.py · Synthetic sample
def build_idempotency_key(cohort_id: str, token: str, survey: str) -> str:
    raw = f"{cohort_id}:{token}:{survey}"
    return hashlib.sha256(raw.encode("utf-8")).hexdigest()[:24]

payload = {
    "extRef": member_token,
    "idempotency_key": build_idempotency_key("2026-Q4-SAMPLE", member_token, "NPS"),
}
View full code
prepare_cohort.py · Synthetic sample
# Synthetic example: audience normalization & idempotency key
from dataclasses import dataclass
import hashlib

@dataclass(frozen=True)
class SampleContact:
    cohort_id: str
    member_token: str
    survey_type: str
    channel: str

def build_idempotency_key(contact: SampleContact) -> str:
    raw = f"{contact.cohort_id}:{contact.member_token}:{contact.survey_type}"
    return hashlib.sha256(raw.encode("utf-8")).hexdigest()[:24]

def prepare_batch(rows: list[dict], cohort_id: str = "2026-Q4-SAMPLE") -> list[dict]:
    payloads = []
    for row in rows:
        item = SampleContact(
            cohort_id=cohort_id,
            member_token=row["synthetic_member_key"].strip(),
            survey_type=row["survey_type"].upper(),
            channel=row["interaction_channel"].lower(),
        )
        payloads.append({
            "extRef": item.member_token,
            "idempotency_key": build_idempotency_key(item),
            "embeddedData": {
                "cohort_id": item.cohort_id,
                "survey_type": item.survey_type,
                "channel": item.channel,
            },
        })
    return payloads

Stage 3 — API dispatch and idempotency

Implemented API dispatch to Qualtrics and platform workflow triggers to generate survey distributions.

Python Workerbatch = 1,200dispatch_logsha256[:24]POSTQualtrics API429 → backoff2s · 4s · 8s200 OKFlowDistributionEmail / LinkNPS · CSAT
View full code
dispatch_payload.json · Synthetic sample
{
  "cohort_id": "2026-Q4-SAMPLE",
  "directory_id": "POOL_SAMPLE_001",
  "local_dispatch_log": {
    "store": "sqlite:qualtrics_dispatch_log",
    "idempotency_key": "9f82c1a4e0b74d229c138f01",
    "already_sent_skipped": 42
  },
  "batch_stats": {
    "selected": 1242,
    "skipped_by_local_log": 42,
    "dispatched": 1200,
    "retry_policy": "exponential_backoff_max_3"
  },
  "sample_request": {
    "method": "POST",
    "endpoint": "/API/v3/directories/{dirId}/mailinglists/{listId}/contacts",
    "headers": {
      "X-API-TOKEN": "<redacted>",
      "Content-Type": "application/json"
    },
    "body": {
      "extRef": "MBR-1042"
    },
    "last_status": "200 OK"
  }
}

Stage 4 — Response return and reconciliation

Implemented automated response ingestion back into internal tables, closing the end-to-end loop.

reconcile_responses.sql · Synthetic sample
-- Reconcile responses via idempotency_key
INSERT INTO dw_analytics.survey_response_fact (response_id, cohort_id, nps_score)
SELECT stg.response_id, log.cohort_id, stg.score_value
FROM integration.qualtrics_response_staging AS stg
JOIN integration.qualtrics_dispatch_log AS log
  ON log.idempotency_key = stg.embedded_idempotency_key
ON CONFLICT (response_id) DO NOTHING;
View full code
reconcile_responses.sql · Synthetic sample
-- Synthetic reconciliation: tie survey responses back to dispatch cohort
INSERT INTO dw_analytics.survey_response_fact (
  response_id,
  cohort_id,
  synthetic_member_key,
  survey_type,
  nps_score,
  ingested_at
)
SELECT
  stg.response_id,
  log.cohort_id,
  log.synthetic_member_key,
  stg.survey_type,
  stg.score_value,
  CURRENT_TIMESTAMP
FROM integration.qualtrics_response_staging AS stg
INNER JOIN integration.qualtrics_dispatch_log AS log
  ON log.idempotency_key = stg.embedded_idempotency_key
ON CONFLICT (response_id) DO NOTHING;

Architectural outcome

End-to-end traceability

Every ingested response links back to its cohort_id and originating eligibility rule.

Safe re-runs

Deterministic keys (sha256[:24]) tracked in local SQLite (qualtrics_dispatch_log) skip already-sent contacts during re-runs.

Versioned business rules

NPS, CSAT, and service criteria isolated in SQL/Python for predictable evolution.

Projects and technical proof

Independent apps, low-level C and Python tooling, and C-matching decompilation.

Live screenshot of ChatRPG landing page showing the headline 'Sua aventura. Do seu jeito.' and the 'Além do horizonte' illustration card.
Independent project · AI

ChatRPG

ChatRPG is my independent conversational RPG project, currently in development. It explores how dialogue can guide player actions and carry the story forward.

  • TypeScript
  • LLMs
  • Tabletop RPG
  • Web App
Windows BCD · CPUID 0x806D0Boot OKHM570 ESBoot loopEvent 41BCDEdit EntryIsolated BCDBypass MBECHyper-VWSL 2 activeXSAVE · AVX2bcdedit /copy {current} /d "Hyper-V"✓ PowerShell + Pester · Erying HM570
Systems and boot · PowerShell

Hyper-V and WSL 2 on Tiger Lake-H ES

Investigated a Windows boot failure and documented a boot configuration option that enabled Hyper-V and WSL 2 on the tested Erying Polestar HM570 board.

  • Windows
  • BCDEdit
  • PowerShell
  • Pester
Win32 I/O Intercept · Cv1.0.0Game Engine63 .rmdblobversion.dllCreateFileW-NO_BUFFERINGOS CacheAudio OKflags &= ~FILE_FLAG_NO_BUFFERING;✓ Zero PrimoCache · ~106 GB stream
Systems and Windows · C

Control Resonant Audio Fix

Open-source PC audio stutter and desync fix using a drop-in version.dll proxy to re-enable Windows file caching across 63 .rmdblob archives.

  • C
  • Win32 API
  • DLL Proxy
  • I/O Caching
WebRTC · MediaDevices APILiveCamera: USB HDMI Capture ▾Start feed● Active stream1920×1080Support✓ USB Webcam✓ HDMI Capture✓ Zero install
Browser utility · WebRTC

Quick Cam Preview

Zero-install browser tool for testing laptop webcams, USB cameras, and HDMI capture cards via the MediaDevices API.

  • HTML / JS
  • MediaDevices API
  • WebRTC
  • GitHub Pages
Binary converter · PythonPS5 → PCPS5 Inputgamedata.binHeader + PadValidationCheck PFSStrip 0x00PC OutputPC Cipherslot_NNNN.binassert all(b == 0 for b in pad)✓ Writes to isolated folder
Binary tooling · Python

Digimon Story: Time Stranger Save Converter

Python CLI converting decrypted PS5 saves (gamedata.bin) to PC with header checks, zero-padding verification, PC cipher, and slot_NNNN.bin metadata.

  • Python
  • Binary Formats
  • Validation
  • CLI
PAL SLES-03936 · C Functions407 matchedCard Cage OverlaysCARDGAME · STCRDABMSTCRDDEK · STCRDSHPMilestone v0.2.0407 / 407 in CMIPS ASM ≡ Cfn_bytes(PAL) == fn_bytes(C)Historical archive · Card Cage overlays
Game preservationHistorical archive

Digimon World 2003 Decompilation

Historical preservation project writing C functions that compile to match the original PAL code (SLES-03936), reaching 407 matched functions across Card Cage overlays (v0.2.0) — not a byte-identical rebuild of the full .PRO files.

  • C
  • MIPS Assembly
  • Ghidra
  • C Function Matching
Interactive demo · Qualtrics SandboxLive sandbox · Browser JS

Qualtrics Pipeline Simulator

100% in-browser simulation using synthetic data (cohort_id: 2026-Q4-SAMPLE): fictitious example with 90-day quarantine and deduplication, SHA-256[:24] keys, local dispatch log (qualtrics_dispatch_log) to skip replays, 429/503 retry backoff, and response reconciliation.

  • Synthetic Sandbox
  • Web Crypto SHA-256
  • Retry & Idempotency
  • SQL Reconciliation
cohort_id: 2026-Q4-SAMPLE

Stage 1 — Eligibility, 90d Quarantine & Dedup (Synthetic example)

Fictitious example: filters opt-outs, contacts within the 90-day cooldown window, and duplicate rows per (member, survey).

Execution trace (HTTP / SQL)0
  1. Click "Run full pipeline" or "Step-by-step" to simulate the full closed-loop flow with synthetic data.

Background and core tooling

I'm Mateus Giordani, a mid-level developer working in technical leadership on Qualtrics integrations at a cooperative financial institution.

I work on translating business rules into the integration and data flows the team needs to operate and evolve. My work spans data modeling, Python audience preparation, ETL, and API integration.

Beyond enterprise integrations in Python and ETL, I explore low-level systems, reverse engineering, and applications with LLMs.

Integrations & Data

  • Python
  • SQL & Data Modeling
  • ETL
  • Qualtrics API
  • Idempotency & Webhooks

Back-end & Web

  • PHP
  • Laravel
  • Hyperf
  • JavaScript / TypeScript
  • Astro

Systems & Preservation

  • C
  • Win32 API
  • Ghidra
  • MIPS Assembly
  • Byte-for-byte matching

AI & Hardware

  • LLMs
  • Ollama
  • Raspberry Pi
  • ESP32