{
	"info": {
		"_postman_id": "a75908bb-d331-4ba6-8dcc-a3b376ab25e5",
		"name": "gizchatbot",
		"description": "Postman collection for the gizchatbot API",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
		"_exporter_id": "696726"
	},
	"item": [
		{
			"name": "Process Message",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{api_token}}",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "message",
							"value": "مرحبا",
							"type": "text"
						},
						{
							"key": "chat_id",
							"value": "274234329",
							"type": "text"
						},
						{
							"key": "platform",
							"value": "{{platform_name}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{api_url}}?action=process&platform=WEBSITE",
					"host": [
						"{{api_url}}"
					],
					"query": [
						{
							"key": "action",
							"value": "process"
						},
						{
							"key": "platform",
							"value": "WEBSITE"
						}
					]
				}
			},
			"response": [
				{
					"name": "Process Message",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{api_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded",
								"type": "text"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "message",
									"value": "مرحبا",
									"type": "text"
								},
								{
									"key": "chat_id",
									"value": "2742324329",
									"type": "text"
								},
								{
									"key": "platform",
									"value": "",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "?action=process_message",
							"query": [
								{
									"key": "action",
									"value": "process_message"
								}
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Date",
							"value": "Mon, 23 Dec 2024 03:26:09 GMT"
						},
						{
							"key": "Content-Type",
							"value": "text/html; charset=UTF-8"
						},
						{
							"key": "Content-Length",
							"value": "90"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "x-powered-by",
							"value": "PHP/8.2.16"
						},
						{
							"key": "expires",
							"value": "Thu, 19 Nov 1981 08:52:00 GMT"
						},
						{
							"key": "cache-control",
							"value": "no-store, no-cache, must-revalidate"
						},
						{
							"key": "pragma",
							"value": "no-cache"
						},
						{
							"key": "content-encoding",
							"value": "br"
						},
						{
							"key": "platform",
							"value": "hostinger"
						},
						{
							"key": "panel",
							"value": "hpanel"
						},
						{
							"key": "content-security-policy",
							"value": "upgrade-insecure-requests"
						},
						{
							"key": "Server",
							"value": "hcdn"
						},
						{
							"key": "alt-svc",
							"value": "h3=\":443\"; ma=86400"
						},
						{
							"key": "x-hcdn-request-id",
							"value": "f5cfd730b20b9e4564e6aac98dd00e06-nme-edge6"
						},
						{
							"key": "x-hcdn-cache-status",
							"value": "DYNAMIC"
						},
						{
							"key": "x-hcdn-upstream-rt",
							"value": "0.513"
						},
						{
							"key": "Accept-Ranges",
							"value": "bytes"
						}
					],
					"cookie": [],
					"body": "{\"reply\":\"أهلاً بك! كيف يمكنني مساعدتك؟\",\"chat_log_id\":\"1139\"}"
				}
			]
		},
		{
			"name": "TOPICS",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{api_token}}",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{api_url}}?action=start_bot&platform={{platform_name}}&parent_id=0",
					"host": [
						"{{api_url}}"
					],
					"query": [
						{
							"key": "action",
							"value": "start_bot"
						},
						{
							"key": "platform",
							"value": "{{platform_name}}"
						},
						{
							"key": "parent_id",
							"value": "0",
							"description": "the id will be the parent, user zero for first step"
						}
					]
				}
			},
			"response": [
				{
					"name": "Start Bot",
					"originalRequest": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{api_token}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "?action=start_bot&platform=&parent_id=0",
							"query": [
								{
									"key": "action",
									"value": "start_bot"
								},
								{
									"key": "platform",
									"value": ""
								},
								{
									"key": "parent_id",
									"value": "0"
								}
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Date",
							"value": "Mon, 23 Dec 2024 03:28:02 GMT"
						},
						{
							"key": "Content-Type",
							"value": "text/html; charset=UTF-8"
						},
						{
							"key": "Content-Length",
							"value": "299"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "x-powered-by",
							"value": "PHP/8.2.16"
						},
						{
							"key": "expires",
							"value": "Thu, 19 Nov 1981 08:52:00 GMT"
						},
						{
							"key": "cache-control",
							"value": "no-store, no-cache, must-revalidate"
						},
						{
							"key": "pragma",
							"value": "no-cache"
						},
						{
							"key": "content-encoding",
							"value": "br"
						},
						{
							"key": "platform",
							"value": "hostinger"
						},
						{
							"key": "panel",
							"value": "hpanel"
						},
						{
							"key": "content-security-policy",
							"value": "upgrade-insecure-requests"
						},
						{
							"key": "Server",
							"value": "hcdn"
						},
						{
							"key": "alt-svc",
							"value": "h3=\":443\"; ma=86400"
						},
						{
							"key": "x-hcdn-request-id",
							"value": "678a81956a412fe1a0479b06f4e2ff00-nme-edge6"
						},
						{
							"key": "x-hcdn-cache-status",
							"value": "DYNAMIC"
						},
						{
							"key": "x-hcdn-upstream-rt",
							"value": "0.495"
						},
						{
							"key": "Accept-Ranges",
							"value": "bytes"
						}
					],
					"cookie": [],
					"body": "[{\"id\":259,\"name\":\"الخدمـات المالية الرقمية\",\"parent_id\":0,\"is_last_node\":false},{\"id\":282,\"name\":\"الميزانية\",\"parent_id\":0,\"is_last_node\":false},{\"id\":345,\"name\":\"الادخار\",\"parent_id\":0,\"is_last_node\":false},{\"id\":346,\"name\":\"الاستثمار\",\"parent_id\":0,\"is_last_node\":false},{\"id\":347,\"name\":\"الاقتراض\",\"parent_id\":0,\"is_last_node\":false},{\"id\":349,\"name\":\"المحافظ الالكترونية\",\"parent_id\":0,\"is_last_node\":false},{\"id\":350,\"name\":\"أجهزة نقاط البيع\",\"parent_id\":0,\"is_last_node\":false},{\"id\":351,\"name\":\"التحويلات المالية\",\"parent_id\":0,\"is_last_node\":false},{\"id\":352,\"name\":\"التأمين\",\"parent_id\":0,\"is_last_node\":false},{\"id\":354,\"name\":\"التمويل الأخضر\",\"parent_id\":0,\"is_last_node\":false},{\"id\":355,\"name\":\"الاحتيال المالي\",\"parent_id\":0,\"is_last_node\":false}]"
				}
			]
		},
		{
			"name": "Random Questions",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{api_token}}",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{api_url}}?action=help_topics&platform={{platform_name}}",
					"host": [
						"{{api_url}}"
					],
					"query": [
						{
							"key": "action",
							"value": "help_topics"
						},
						{
							"key": "platform",
							"value": "{{platform_name}}"
						}
					]
				}
			},
			"response": [
				{
					"name": "Help Topics",
					"originalRequest": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{api_token}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "?action=help_topics&platform=",
							"query": [
								{
									"key": "action",
									"value": "help_topics"
								},
								{
									"key": "platform",
									"value": ""
								}
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Date",
							"value": "Mon, 23 Dec 2024 03:30:09 GMT"
						},
						{
							"key": "Content-Type",
							"value": "text/html; charset=UTF-8"
						},
						{
							"key": "Content-Length",
							"value": "262"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "x-powered-by",
							"value": "PHP/8.2.16"
						},
						{
							"key": "expires",
							"value": "Thu, 19 Nov 1981 08:52:00 GMT"
						},
						{
							"key": "cache-control",
							"value": "no-store, no-cache, must-revalidate"
						},
						{
							"key": "pragma",
							"value": "no-cache"
						},
						{
							"key": "content-encoding",
							"value": "br"
						},
						{
							"key": "platform",
							"value": "hostinger"
						},
						{
							"key": "panel",
							"value": "hpanel"
						},
						{
							"key": "content-security-policy",
							"value": "upgrade-insecure-requests"
						},
						{
							"key": "Server",
							"value": "hcdn"
						},
						{
							"key": "alt-svc",
							"value": "h3=\":443\"; ma=86400"
						},
						{
							"key": "x-hcdn-request-id",
							"value": "877f4be771760ee608c63ca886b30409-nme-edge6"
						},
						{
							"key": "x-hcdn-cache-status",
							"value": "DYNAMIC"
						},
						{
							"key": "x-hcdn-upstream-rt",
							"value": "0.495"
						},
						{
							"key": "Accept-Ranges",
							"value": "bytes"
						}
					],
					"cookie": [],
					"body": "[\"أنواع الاحتيال المالي الإلكتروني؟\",\"ما هو الدفع الإلكتروني؟\",\"تطوير البنية التحتية المستدامة؟\",\"نماذج عن مشاريع عالمية للتمويل الأخضر؟\",\"كيف يتم إعداد الميزانية؟\",\"ما هي القروض؟\",\"التمويل الأخضر وإدارة المياه؟\",\"التحالف العالمي للبنوك مع التمويل الأخضر (GABV)؟\"]"
				}
			]
		}
	],
	"variable": [
		{
			"key": "platform_name",
			"value": "",
			"type": "default"
		},
		{
			"key": "api_url",
			"value": "https://giz.duhokstorefront.com/api.php",
			"type": "default"
		}
	]
}