ANI to SMS to the customer's phone

Target integration • SMS code exists; the Cloud Run pilot needs channel mapping, AWS setup and a public web front door

ANI to SMS to the customer's phone Target integration • SMS code exists; the Cloud Run pilot needs channel mapping, AWS setup and a public web front door Incoming call + ANI Read the caller number from the chosen channel's metadata runSession: inputs[].variables callerPhone + backend-generated connectionRequestId; declare both in GECX BidiRunSession: voice stream Same GECX session; bind context before permitting the connection tool connect_auto_experience phone_number = callerPhone; request_id = connectionRequestId; send_link = true SendTextMessage Create experience and opaque link; sign the AWS request with configured credentials MessageId AWS accepts the request; delivery can still fail sms_submitted + experience ID Use this ID in later tool arguments; MCP does not set the GECX variable SMS: /demo/#connect=CODE Carrier delivery; customer taps the HTTPS link GET /demo/ Via a REQUIRED public web front door; private Cloud Run alone returns 403 POST /v1/connections/redeem Browser posts the opaque code through the same web front door Experience ID + browser JWT Code expires with the experience; the browser keeps the JWT in memory GET /v1/sessions/{id}/events Browser JWT; continue with the form round-trip diagram Bind caller context Create and text link Open companion Telephony · Call metadata · Sequence participant Telephony Call metadata Adapter · Call gateway · Sequence participant Adapter Call gateway GECX · Agent + MCP · Sequence participant GECX Agent + MCP Multimodal · MCP + web API · Sequence participant Multimodal MCP + web API AWS SMS · Text delivery · Sequence participant AWS SMS Text delivery Phone · SMS + browser · Sequence participant Phone SMS + browser Legend request return security async trace default message

Pass ANI as an input

  • • Your adapter maps call metadata into callerPhone. TrueServe can author this mapping as callerPhone: $var:ani.
  • • Use a country-code phone number. Ask for a mobile number if ANI is absent or unsuitable for SMS. ANI does not authenticate the customer.

Scope and retries

  • • Let connect_auto_experience create a new acg-auto experience. It grants the four auto tools. The pilot launcher excludes the connection tool.
  • • Generate one stable request_id per connection attempt. The service deduplicates retries and avoids resending after an ambiguous AWS response.

Build the customer web entry

  • • Provision a public HTTPS host for /demo and the browser routes. Its backend must authenticate to private Cloud Run and preserve each browser JWT.
  • • Configure link generation to use that host. Keep operator session creation and MCP access behind their existing authorization checks.

Enable and test SMS

  • • Configure AWS credentials and MULTIMODAL_SMS_ORIGINATION_IDENTITY, then attach connect_auto_experience to the GECX agent.
  • • sms_submitted records AWS acceptance. connected reflects a recent browser SSE connection; test delivery and voice interruption on the target channel.