首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Twilio的Watson助手与电话的集成

使用Twilio的Watson助手与电话的集成
EN

Stack Overflow用户
提问于 2021-12-10 18:29:44
回答 1查看 119关注 0票数 1

你好,我正在使用沃森助手的语音(使用Twilio ),我想转发呼叫到另一个号码,当用户想要连接到一个代理,或这是因为流量。我正在使用(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)

代码语言:javascript
复制
{
  "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"
      }
    ]
  }
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-13 13:10:13

代码语言:javascript
复制
{
  "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": {}
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70308948

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档