Watson Assistant 使用 Twilio 与电话集成

Posted

技术标签:

【中文标题】Watson Assistant 使用 Twilio 与电话集成【英文标题】:Watson Assistant Integration with Phone Using Twilio 【发布时间】:2022-01-15 09:47:23 【问题描述】:

您好,我正在使用 Watson 语音助手(使用 Twilio SIP)我想在用户想要连接到代理时将呼叫转接到另一个号码,或者这是因为流量。我正在使用 (https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-voice-actions#dialog-voice-actions-transfer) 中提到的以下方法。但是通话并没有转移它只是结束。还有一些信息(https://cloud.ibm.com/docs/assistant?topic=assistant-deploy-phone#deploy-phone-transfer-service)


  "output": 
    "generic": [
      
        "response_type": "connect_to_agent",
        "transfer_info": 
          "target": 
            "service_desk": 
              "sip": 
                "uri": "tel:+18883334444",
                "transfer_headers": [
                  
                    "name": "Name",
                    "value": "Aymal"
                  ,
                  
                    "name": "Phone_Number",
                    "value": "4693061410"
                  
                ],
                "transfer_headers_send_method": "refer_to_header"
              
            
          
        ,
        "agent_available": 
          "message": "I'll transfer you to an agent"
        ,
        "agent_unavailable": 
          "message": "Sorry, I could not find an agent."
        ,
        "message_to_human_agent": "New Patient"
      
    ]
  

【问题讨论】:

您发布的图片中的错误消息说要改用vgwActTransfer。你试过using vgwActTransfer吗? 我已经添加了答案 【参考方案1】:

  "output": 
    "generic": [
      
        "response_type": "connect_to_agent",
        "transfer_info": 
          "target": 
            "service_desk": 
              "sip": 
                "uri": "tel:+18883334444",
                "transfer_headers": [
                  
                    "name": "Customer-Header1",
                    "value": "Some-Custom-Info"
                  ,
                  
                    "name": "User-to-User",
                    "value": "XXXXXX"
                  
                ],
                "transfer_headers_send_method": "refer_to_header"
              
            
          
        ,
        "agent_available": 
          "message": "I'll transfer you to an agent"
        ,
        "agent_unavailable": 
          "message": "Sorry, I could not find an agent."
        ,
        "message_to_human_agent": "The caller Wants to connect to human agent"
      
    ]
  ,
  "context": 

【讨论】:

以上是关于Watson Assistant 使用 Twilio 与电话集成的主要内容,如果未能解决你的问题,请参考以下文章

IBM Watson Assistant:如何通过对话进行 API 调用

Watson Assistant 的数据集

找不到Watson Assistant登录名

从 Watson Assistant 调用 OpenWeather API:“直接 CloudFunctions 调用不成功”

IBM Watson Assistant 响应来自机器人的延迟

尝试通过 Axios (React Native) 访问 IBM Watson Assistant 消息时出现错误 500