如何使用AWS Connect API创建任务

0

【以下的问题经过翻译处理】 我们在Lambda使用Python Boto3“start_task_contact”调用Amazon Connect上的CreateTaskContact API时,是否有办法将电话号码作为“Reference”属性的值传递。这样当任务到达代理时,他可以简单地单击电话号码以发出呼出电话?目前,“引用”属性仅接受URL作为类型和有效URL作为值。除此以外的任何内容都会引发InvalidRequestException错误。

profile picture
EXPERT
asked 5 months ago53 views
1 Answer
0

【以下的回答经过翻译处理】 根据 API 指南,请使用 'Attributes' 传递电话号码:https://docs.aws.amazon.com/connect/latest/APIReference/API_StartTaskContact.html#API_StartTaskContact_RequestSyntax

"Attributes": { "TripAdvisorScore": "5 out of 5", "PhoneNumber": "+44112233445566" }

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions