Loading
The Trailblazer Community is now read-only Read More
Agentforce and Einstein Generative AI
Add Agentforce as the Voice Collaborator

Add Agentforce as the Voice Collaborator

Create an Amazon Q in Connect orchestration AI agent. This agent hands the live call to Agentforce Voice with Real-Time Streaming on the first turn. Point the agent at the A2A application that you registered. Let Agentforce speak to the caller in its own voice. Then associate the security profile that you created with this agent. Connect streams PCM audio at 8 kHz, 16 kHz, or 24 kHz.

  1. Create the AI agent.
    awscurl --service wisdom --region <REGION> --profile <AWS_PROFILE> -X POST \
      --header 'Content-Type: application/json' \
      --data '{
        "name": "agentforce-voice-orchestrator",
        "type": "ORCHESTRATION",
        "visibilityStatus": "PUBLISHED",
        "configuration": {
          "orchestrationAIAgentConfiguration": {
            "connectInstanceArn": "arn:aws:connect:<REGION>:<ACCOUNT_ID>:instance/<CONNECT_INSTANCE_ID>",
            "toolConfigurations": [
              {
                "toolName": "Complete",
                "toolType": "RETURN_TO_CONTROL",
                "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false }
              }
            ],
            "multiAgentConfigurations": [
              {
                "handoffAgentConfiguration": {
                  "agentTarget": { "applicationId": "<APPLICATION_ID>" },
                  "instruction": {
                    "instruction": "Hand off the voice conversation to Agentforce. Agentforce uses its own voice for the customer conversation."
                  },
                  "audioStreamingEnabled": true,
                  "immediateHandoff": true
                }
              }
            ]
          }
        }
      }' \
      https://wisdom.<REGION>.amazonaws.com/assistants/<ASSISTANT_ID>/aiagents
  2. Associate the security profile with the unversioned agent. After you publish a version, associate the profile with the versioned ARN as well.
    aws connect associate-security-profiles \
      --instance-id <CONNECT_INSTANCE_ID> \
      --entity-arn <AI_AGENT_ARN> \
      --entity-type AI_AGENT \
      --security-profiles Id=<SECURITY_PROFILE_ID> \
      --region <REGION>
 
Loading
Salesforce Help | Article