Fulfillment Webhook Request
The field Original Detect Intent Request passes the raw data from the channel provider to Dialogflow.
If you are building a Dialogflow Agent that uses Dialogflow Fulfilment extensively you will find the data passed by the channel provider useful for your application. This data is passed from respond.io platform to Dialogflow using the originalDetectIntentRequest field.

Contact Object

To allow for more advanced use cases of the API, the contact object is appended to the request by the platform. The cId item in the contact object reflects the same value used in the Contacts API.
1
"contact": {
2
"cId": "60133386712",
3
"contactId": 123456,
4
"channelId": 7890
5
}
Copied!

Facebook

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "facebook",
4
"contact": {
5
"cId": "3854977680200098",
6
"contactId": "123456",
7
"channelId": "7890"
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"entry": [
21
{
22
"messaging": [
23
{
24
"recipient": {
25
"id": "177689475607202"
26
},
27
"message": {
28
"text": "hi",
29
"mid": "D3DJuA0YlOgDgOybFG1M2ZHoJg9hq9IAjMQE2ps6RIN4QJ25rNPMi"
30
},
31
"timestamp": 1564743055901,
32
"sender": {
33
"id": "2254108171328398"
34
}
35
}
36
],
37
"id": "177689475607202",
38
"time": 1564743056313
39
}
40
],
41
"object": "page"
42
}
43
}
44
}
Copied!

LINE

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "line",
4
"contact": {
5
"cId": "U905251b5f5759acde5e4788681c04269",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"events": [
21
{
22
"type": "message",
23
"replyToken": "16a59224c65b4c5cbecedc4f3504599b",
24
"source": {
25
"userId": "U905251b5f5759bbde5e4788681c04170",
26
"type": "user"
27
},
28
"timestamp": 1593146060317,
29
"mode": "active",
30
"message": {
31
"type": "text",
32
"id": "12211455206333",
33
"text": "Hi"
34
}
35
}
36
],
37
"destination": "U5698920083824716136c04633a9e1710"
38
}
39
}
40
}
Copied!

SMS

Twilio
MessageBird
Vonage
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "twilio",
4
"contact": {
5
"cId": "+12262120005",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"ToCountry": "CA",
21
"ToState": "Ontario",
22
"SmsMessageSid": "SM1f1c9a30ff67cf5b1a89d5b1e0735a2b",
23
"NumMedia": "0",
24
"ToCity": "",
25
"FromZip": "",
26
"SmsSid": "SM1f1c9a30ff67cf5b1a89d5b1e0735a2b",
27
"FromState": "Ontario",
28
"SmsStatus": "received",
29
"FromCity": "St Thomas",
30
"Body": "Hi",
31
"FromCountry": "CA",
32
"To": "+12267022870",
33
"ToZip": "",
34
"NumSegments": "1",
35
"MessageSid": "SM1f1c9a30ff67cf5b1a89d5b1e0735a2b",
36
"AccountSid": "AC75bcf6cd15a35c46c6e5fa6d6dde6028",
37
"From": "+12262121015",
38
"ApiVersion": "2010-04-01"
39
}
40
}
41
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "message_bird",
4
"contact": {
5
"cId": "16364923690"
6
},
7
"attachments": [
8
{
9
"type": "location",
10
"payload": {
11
"lat": 3.146642,
12
"long": 101.695847,
13
"address": "Kuala Lumpur City Center"
14
}
15
}
16
],
17
"body": {
18
"body": "Hi",
19
"createdDatetime": "2020-06-26T07:51:30+00:00",
20
"date": "1593186690",
21
"date_utc": "1593157890",
22
"id": "6c4c8c58eb204e69ae7d07e309c5a11c",
23
"invocationId": "477a8bc9-a4ec-45db-98e0-3b982898945a",
24
"message": "Hi",
25
"message_id": "026a4c0e38954e5684757ba1de645130",
26
"originator": "12267022870",
27
"payload": "Hi",
28
"receiver": "12262121015",
29
"recipient": "12262121015",
30
"reference": "88003423322",
31
"sender": "12267022870"
32
}
33
}
34
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "nexmo",
4
"contact": {
5
"cId": "60133386712"
6
},
7
"body": {
8
"msisdn": "12012938397",
9
"to": "12012938397",
10
"messageId": "16000002AB5DBF42",
11
"text": "Hi",
12
"type": "text",
13
"keyword": "HI",
14
"api-key": "2787fb30",
15
"message-timestamp": "2020-04-27 09:00:08"
16
}
17
}
18
}
Copied!

Telegram

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "telegram",
4
"contact": {
5
"cId": "928825753",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"update_id": 68062810,
21
"message": {
22
"message_id": 358,
23
"from": {
24
"id": 921815852,
25
"is_bot": false,
26
"first_name": "Leo",
27
"language_code": "en"
28
},
29
"chat": {
30
"id": 921815852,
31
"first_name": "Leo",
32
"type": "private"
33
},
34
"date": 1593415824,
35
"text": "Hi"
36
}
37
}
38
}
39
}
Copied!

Twitter

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "twitter",
4
"contact": {
5
"cId": "800244779787258095",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"body": {
10
"for_user_id": "800244779786258096",
11
"direct_message_events": [
12
{
13
"type": "message_create",
14
"id": "1277881813680091140",
15
"created_timestamp": "1593505740934",
16
"message_create": {
17
"target": {
18
"recipient_id": "800244779786258096"
19
},
20
"sender_id": "1236829623670812661",
21
"message_data": {
22
"text": "Hi",
23
"entities": {
24
"hashtags": [],
25
"symbols": [],
26
"user_mentions": [],
27
"urls": []
28
}
29
}
30
}
31
}
32
],
33
"users": {
34
"1236829623670812661": {
35
"id": "1236829623670812661",
36
"created_timestamp": "1583718145786",
37
"name": "leoawesome",
38
"screen_name": "leoawesome21",
39
"protected": false,
40
"verified": false,
41
"followers_count": 0,
42
"friends_count": 1,
43
"statuses_count": 0,
44
"profile_image_url": "http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png",
45
"profile_image_url_https": "https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png"
46
},
47
"800244779786258096": {
48
"id": "800244779786258096",
49
"created_timestamp": "1479628198125",
50
"name": "respond.io",
51
"screen_name": "respond_io",
52
"description": "https://t.co/8AN2CVzhwJ is a business messaging platform that connects customers from any channel to every team.",
53
"url": "https://t.co/vE593YRZwo",
54
"protected": false,
55
"verified": false,
56
"followers_count": 246,
57
"friends_count": 23,
58
"statuses_count": 1527,
59
"profile_image_url": "http://pbs.twimg.com/profile_images/1250330944067653632/3KiCeUhc_normal.jpg",
60
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1250330944067653632/3KiCeUhc_normal.jpg"
61
}
62
}
63
}
64
}
65
}
Copied!

Viber

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "viber",
4
"contact": {
5
"cId": "T1yTBK3PQTHAFchsDh1skA==",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"event": "message",
21
"timestamp": 1593420787910,
22
"chat_hostname": "BN-CHAT-14_",
23
"message_token": 5458312086267550000,
24
"sender": {
25
"id": "T1yTBK3PQFGAGdhsDh1skA==",
26
"name": "Leo",
27
"avatar": "https://media-direct.cdn.viber.com/download_photo?dlid=tHBOJafTJ8WSwoFLCQ0x1lmS8RXeDXXyUVoAoLmmOGPIMprwqNCUO6BH3cG-VoAYd3WetLrBK4nP7C86ZN3MxG5T40A1lduzChAts-ULz0oO9l7FjW3bAYljiLyTGkYbaCRjcQ&fltp=jpg&imsz=0000",
28
"language": "en",
29
"country": "MY",
30
"api_version": 8
31
},
32
"message": {
33
"text": "Hi",
34
"type": "text"
35
},
36
"silent": false
37
}
38
}
39
}
Copied!

WeChat

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "wechat",
4
"contact": {
5
"cId": "ovYOJv8eZlJ5efKToATGeOk5hBQM",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"xml": {
21
"ToUserName": [
22
"gh_5b17802cd972"
23
],
24
"FromUserName": [
25
"ovYOJv8eZlJ5evMToATGePk5hAQM"
26
],
27
"CreateTime": [
28
"1593421765"
29
],
30
"MsgType": [
31
"text"
32
],
33
"Content": [
34
"Hi"
35
],
36
"MsgId": [
37
"22812312807562437"
38
]
39
}
40
}
41
}
42
}
Copied!

Webchat

1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "webchat",
4
"contact": {
5
"cId": "e6507476-e507-4503-9652-bcde24e8ea88",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"body": {
10
"sender": {
11
"id": "07f1e397-12a8-485b-a417-14d7e3837608",
12
"locale": "en_US"
13
},
14
"recipient": {
15
"id": "4db00a5db70efbb51a0cd6a6635918390dd1945a89ce77898ab66b82d5c15344"
16
},
17
"query": [
18
{
19
"type": "query",
20
"text": "Hi"
21
}
22
]
23
}
24
}
25
}
Copied!

WhatsApp

Twilio
MessageBird
Vonage
Chat API
360Dialog v1
360Dialog v2
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "twilio_whatsapp",
4
"contact": {
5
"cId": "whatsapp:+60133385703",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"SmsMessageSid": "SMb16231017683857d42ca62aafabcf205",
21
"NumMedia": "0",
22
"SmsSid": "SMb16231017683857d42ca62aafabcf205",
23
"SmsStatus": "received",
24
"Body": "Hi",
25
"To": "whatsapp:+14155238886",
26
"NumSegments": "1",
27
"MessageSid": "SMb16231017683857d42ca62aafabcf205",
28
"AccountSid": "AC75bcf6cd15a35c46c6e5fa6d6dde6028",
29
"From": "whatsapp:+60144486813",
30
"ApiVersion": "2010-04-01"
31
}
32
}
33
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "message_bird_whatsapp",
4
"contact": {
5
"cId": "60133385712",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"contact": {
21
"attributes": {},
22
"createdDatetime": "2020-05-18T03:02:01Z",
23
"customDetails": {},
24
"displayName": "60123376813",
25
"firstName": "",
26
"href": "https://contacts.messagebird.com/v2/contacts/32845951f19c43d0b4e3371df0da941a",
27
"id": "32845951f19c43d0b4e3371df0da941a",
28
"lastName": "",
29
"msisdn": 60123376813,
30
"updatedDatetime": "2020-05-18T03:02:01Z"
31
},
32
"conversation": {
33
"contactId": "32845951f19c43d0b4e3371df0da941a",
34
"createdDatetime": "2020-05-18T03:02:01Z",
35
"id": "64d59ed4cb4f419ca39114c292c1a597",
36
"lastReceivedDatetime": "2020-06-26T08:58:55.7451283Z",
37
"status": "active",
38
"updatedDatetime": "2020-06-25T08:59:30.877791342Z"
39
},
40
"message": {
41
"channelId": "f4b115e89415407ab2b97fe85ad3d191",
42
"content": {
43
"text": "Hi"
44
},
45
"conversationId": "64d59ed4cb4f419ca39114c292c1a597",
46
"createdDatetime": "2020-06-26T08:58:55Z",
47
"direction": "received",
48
"from": "+60123376813",
49
"id": "91c8268bb72b412cab3b4080a974c5dc",
50
"platform": "whatsapp",
51
"status": "received",
52
"to": "+6531290788",
53
"type": "text",
54
"updatedDatetime": "2020-06-26T08:58:55.750324338Z"
55
},
56
"type": "message.created"
57
}
58
}
59
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "nexmo_whatsapp",
4
"contact": {
5
"cId": "60133386712",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"message_uuid": "2b53f909-1640-471f-a44d-e4cb9bd00c44",
21
"to": {
22
"type": "whatsapp",
23
"number": "12012938397"
24
},
25
"from": {
26
"type": "whatsapp",
27
"number": "60133285813"
28
},
29
"timestamp": "2020-06-29T04:37:21.876Z",
30
"message": {
31
"content": {
32
"type": "text",
33
"text": "Hi"
34
}
35
},
36
"direction": "inbound"
37
}
38
}
39
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "whatsapp",
4
"contact": {
5
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"messages": [
21
{
22
"id": "[email protected]_4A4AE5DAA5601F0560C45E46C16186FE",
23
"body": "Hi",
24
"fromMe": false,
25
"self": 0,
26
"isForwarded": 0,
27
"author": "[email protected]",
28
"time": 1593491156,
29
"chatId": "[email protected]",
30
"messageNumber": 155,
31
"type": "chat",
32
"senderName": "Leo",
33
"caption": null,
34
"quotedMsgBody": null,
35
"quotedMsgId": null,
36
"chatName": "Leo"
37
}
38
],
39
"instanceId": "144708"
40
}
41
}
42
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "message_pipe_whatsapp",
4
"contact": {
5
"cId": "60133386712",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"environment": {
21
"app_id": "476"
22
},
23
"events": [
24
{
25
"name": "d360_whatsapp_message_in",
26
"properties": {
27
"stack_id": "85256128299",
28
"message_id": "IY2Cx8lhx0E0M",
29
"conversation_id": "K7SWYeCmed07C",
30
"type": "text",
31
"content": {
32
"body": "Hi"
33
}
34
},
35
"timestamp": "1593502341000",
36
"id": "7a104e27-d4d2-4e5d-8c8a-c74f3ba8e6c1"
37
}
38
],
39
"device": {
40
"mdn": "60133286713",
41
"profile_name": "Leo"
42
},
43
"recipient_id": "64f0699c-e005-409d-b177-6a975c61ba60"
44
}
45
}
46
}
Copied!
1
"originalDetectIntentRequest": {
2
"payload": {
3
"source": "360dialog_whatsapp",
4
"contact": {
5
"cId": "60133386712",
6
"contactId": 123456,
7
"channelId": 7890
8
},
9
"attachments": [
10
{
11
"type": "location",
12
"payload": {
13
"lat": 3.146642,
14
"long": 101.695847,
15
"address": "Kuala Lumpur City Center"
16
}
17
}
18
],
19
"body": {
20
"contacts": [
21
{
22
"profile": {
23
"name": "John Don"
24
},
25
"wa_id": "923339883320"
26
}
27
],
28
"messages": [
29
{
30
"from": "923339885509",
31
"id": "ABEGkjM5iFUJAhDGiqsifkiyZkH6HzvBfO2m",
32
"text": {
33
"body": "Hi"
34
},
35
"timestamp": "1595240228",
36
"type": "text"
37
}
38
]
39
}
40
}
41
}
Copied!
Last modified 8mo ago