Skip to content

Commit a02c3d5

Browse files
committed
Add Twilio auto-reply messages for phone calls
1 parent da10661 commit a02c3d5

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

public/twilio/reception.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<Response>
4+
<Gather numDigits="1" timeout="5" action="https://coderdojo.jp/twilio/record.xml" method="GET">
5+
<Say language="ja-JP" voice="woman">
6+
お電話ありがとうございます。一般社団法人コーダー道場ジャパンです。
7+
8+
コーダー道場ジャパンへのお問い合わせについては、公式ウェブサイトにある、
9+
お問い合わせフォームよりご連絡いただけると幸いです。
10+
11+
メッセージを録音される場合は、1、を、
12+
お問い合わせフォームの詳細をお聞きになる場合は、そのままお待ちください。
13+
</Say>
14+
</Gather>
15+
16+
<!-- タイムアウト後(何も押さなかった場合) -->
17+
<Say language="ja-JP" voice="woman">
18+
お問い合わせフォームの詳細ですね。
19+
20+
お問い合わせフォームは、ブラウザから、
21+
コーダー、ドウジョウ、ドット、ジェーピー、にアクセスし、
22+
ページ下部にある、お問い合わせフォームよりご連絡ください。
23+
アルファベットで、C、O、D、E、R、D、O、J、O、ドット、J、P、です。
24+
25+
お電話、ありがとうございました。
26+
</Say>
27+
28+
<Hangup/>
29+
</Response>

public/twilio/record.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<Response>
4+
<Say language="ja-JP" voice="woman">
5+
メッセージの録音ですね。了解しました。
6+
それでは、ピー、という発信音の後に、
7+
お名前と、ご用件をお話しください。
8+
</Say>
9+
<Record maxLength="60" />
10+
<Say language="ja-JP" voice="woman">
11+
メッセージをお預かりしました。
12+
お電話、ありがとうございました。
13+
</Say>
14+
15+
<Hangup/>
16+
</Response>

0 commit comments

Comments
 (0)