Make List Buttons Dynamic
Dishang Shah
#1
Dishang Shah
Hello team,

I want to display http api response in List buttons.
I have an api that send data dynamically like cat 1, cat 2, cat 3 now my use case as below.

whenever i trigger an api it's validate my account and show me respective category like cat1, cat 2 and if i trigger an api for Mr. X will get cat 2, cat 3.
so as of now am unable to achieve this in BS.

i request you to make list buttons fully dynamic or add an element to decode json and display in list button in whatsapp.

Thank you.
#2
Abhi
+++ Much needed
#3
BotSailor
We will research in and hopefully in future we will implement it.

Thanks
#4
Dishang Shah
#3

BotSailor

okay best luck
#5
Dishang Shah
[
{
"id": "5ae13706-005a-4e2f-b593-3e9999d1403a",
"name": "Food Allowance",
"description": "Monthly Employee Benefit for category : Food Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 1200,
"dateCreated": "2024-11-19T12:26:30.977Z",
"dateUpdated": "2024-11-19T12:26:30.977Z",
"dateDeleted": null,
"benefitCategory": {
"id": "9ae1c270-473a-428a-9efc-4f6ada140ba2",
"name": "Food Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "db8ab8eb-5368-421c-bb81-075f173db285",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 2400,
"benefitCategoryLimitPercentage": 5,
"benefitCategoryKey": "Food_Allowance",
"dateCreated": "2024-11-19T12:25:03.310Z",
"dateUpdated": "2024-11-19T12:25:03.310Z",
"dateDeleted": null
},
"limitUsed": 1200
},
{
"id": "e14b9aa2-5e00-4e1b-af94-036bab92f7e6",
"name": "Children Education",
"description": "Monthly Employee Benefit for category : Children Education",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 100,
"dateCreated": "2024-11-19T12:26:31.154Z",
"dateUpdated": "2024-11-19T12:26:31.154Z",
"dateDeleted": null,
"benefitCategory": {
"id": "e4a885c6-c63d-4930-87b8-d5130cce09bf",
"name": "Children Education",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "5c62a149-45eb-42b9-a113-e671f89c8cf7",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 100,
"benefitCategoryLimitPercentage": 5,
"benefitCategoryKey": "Children_Education",
"dateCreated": "2024-11-19T12:25:03.322Z",
"dateUpdated": "2024-11-19T12:25:03.322Z",
"dateDeleted": null
},
"limitUsed": 100
},
{
"id": "e0e9a5dc-d390-46c2-b11f-34a0210e89c7",
"name": "Hostel Allowance",
"description": "Monthly Employee Benefit for category : Hostel Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 300,
"dateCreated": "2024-11-19T12:26:31.151Z",
"dateUpdated": "2024-11-19T12:26:31.151Z",
"dateDeleted": null,
"benefitCategory": {
"id": "34f573c9-b115-4b2d-8c30-42d3ff18d171",
"name": "Hostel Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "60b94341-e7ec-40e7-a4c4-ed6efdc81988",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 300,
"benefitCategoryLimitPercentage": 5,
"benefitCategoryKey": "Hostel_Allowance",
"dateCreated": "2024-11-19T12:25:03.327Z",
"dateUpdated": "2024-11-19T12:25:03.327Z",
"dateDeleted": null
},
"limitUsed": 300
},
{
"id": "e6c2da7c-c7e2-42ae-8c62-6c16a6c96d93",
"name": "Gift Allowance",
"description": "Monthly Employee Benefit for category : Gift Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 400,
"dateCreated": "2024-11-19T12:26:31.063Z",
"dateUpdated": "2024-11-19T12:26:31.063Z",
"dateDeleted": null,
"benefitCategory": {
"id": "838634a1-c8eb-4278-9d77-33046c54d4a3",
"name": "Gift Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "ced57dd1-f352-4792-bc37-f18c132c8642",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 400,
"benefitCategoryLimitPercentage": 5,
"benefitCategoryKey": "Gift_Allowance",
"dateCreated": "2024-11-19T12:25:03.331Z",
"dateUpdated": "2024-11-19T12:25:03.331Z",
"dateDeleted": null
},
"limitUsed": 400
},
{
"id": "bc800d59-0739-4fd6-a00d-767e10476554",
"name": "Fuel Allowance",
"description": "Monthly Employee Benefit for category : Fuel Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 2400,
"dateCreated": "2024-11-19T12:26:31.066Z",
"dateUpdated": "2024-11-19T12:26:31.066Z",
"dateDeleted": null,
"benefitCategory": {
"id": "9b5bbc0d-7be9-40c0-bbbb-528be156727e",
"name": "Fuel Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "13821aec-fb16-4d83-a91f-3a3057bd9153",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 2400,
"benefitCategoryLimitPercentage": 15,
"benefitCategoryKey": "Fuel_Allowance",
"dateCreated": "2024-11-19T12:25:03.337Z",
"dateUpdated": "2024-11-19T12:25:03.337Z",
"dateDeleted": null
},
"limitUsed": 2400
},
{
"id": "d72a430c-e0e6-408a-a716-7ca0d1c40365",
"name": "Medical Allowance",
"description": "Monthly Employee Benefit for category : Medical Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 3600,
"dateCreated": "2024-11-19T12:26:31.147Z",
"dateUpdated": "2024-11-19T12:26:31.147Z",
"dateDeleted": null,
"benefitCategory": {
"id": "d4d4592b-24bf-43bb-b6f9-16053b5d81ba",
"name": "Medical Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "211fadbf-cc61-4dd0-aed4-ca6bdc3f7dd1",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 25000,
"benefitCategoryLimitPercentage": 15,
"benefitCategoryKey": "Medical_Allowance",
"dateCreated": "2024-11-19T12:25:03.352Z",
"dateUpdated": "2024-11-19T12:25:03.352Z",
"dateDeleted": null
},
"limitUsed": 3600
},
{
"id": "b5c895f3-a8f2-4ae3-840d-8e93f4378235",
"name": "Health and Wellness Allowance",
"description": "Monthly Employee Benefit for category : Health and Wellness Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 4800,
"dateCreated": "2024-11-19T12:26:31.156Z",
"dateUpdated": "2024-11-19T12:26:31.156Z",
"dateDeleted": null,
"benefitCategory": {
"id": "ae54dc47-67cd-432f-b3a3-dc2ac56566de",
"name": "Health and Wellness Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "f162f255-cc20-4119-b984-4b6c47510301",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 20000,
"benefitCategoryLimitPercentage": 20,
"benefitCategoryKey": "Health_and_Wellness_Allowance",
"dateCreated": "2024-11-19T12:25:03.357Z",
"dateUpdated": "2024-11-19T12:25:03.357Z",
"dateDeleted": null
},
"limitUsed": 4800
},
{
"id": "7a9c220c-7ca7-48c2-97fa-a16a7a807f86",
"name": "Communication Allowance",
"description": "Monthly Employee Benefit for category : Communication Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 1200,
"dateCreated": "2024-11-19T12:26:30.983Z",
"dateUpdated": "2024-11-19T12:26:30.983Z",
"dateDeleted": null,
"benefitCategory": {
"id": "0f10bc5b-7e18-4356-98c3-1bdd461ff97b",
"name": "Communication Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "889e0ad2-2c85-4333-ba72-57f0b0296fe9",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 12000,
"benefitCategoryLimitPercentage": 5,
"benefitCategoryKey": "Communication_Allowance",
"dateCreated": "2024-11-19T12:25:03.367Z",
"dateUpdated": "2024-11-19T12:25:03.367Z",
"dateDeleted": null
},
"limitUsed": 1200
},
{
"id": "2dcfd45c-36e6-41c4-bb31-9da665a6968a",
"name": "Vehicle Allowance",
"description": "Monthly Employee Benefit for category : Vehicle Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 2400,
"dateCreated": "2024-11-19T12:26:31.156Z",
"dateUpdated": "2024-11-19T12:28:45.879Z",
"dateDeleted": null,
"benefitCategory": {
"id": "4a01f884-a0db-4f33-a2d1-e2afc4db5911",
"name": "Vehicle Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "235e0db9-f8ed-47eb-a6a8-62e77dc8d72a",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 25000,
"benefitCategoryLimitPercentage": 10,
"benefitCategoryKey": "Vehicle_Allowance",
"dateCreated": "2024-11-19T12:25:03.342Z",
"dateUpdated": "2024-11-19T12:28:45.811Z",
"dateDeleted": null
},
"limitUsed": 2400
},
{
"id": "8013ba70-990c-48ea-86da-16dfb9ec9da9",
"name": "Academic and Research Allowance",
"description": "Monthly Employee Benefit for category : Academic and Research Allowance",
"inclusions": null,
"benefitStatus": "enabled",
"totalFbpAllocated": 3600,
"dateCreated": "2024-11-19T12:26:31.146Z",
"dateUpdated": "2024-11-19T12:28:45.882Z",
"dateDeleted": null,
"benefitCategory": {
"id": "dd1e6ef7-2084-46bf-8d04-568204f4d835",
"name": "Academic and Research Allowance",
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"sopId": "5041e336-04b6-4ef7-8b0c-c2d71a8c4775",
"benefitStatus": "enabled",
"absoluteBenefitCategoryLimit": 25000,
"benefitCategoryLimitPercentage": 15,
"benefitCategoryKey": "Academic_and_Research_Allowance",
"dateCreated": "2024-11-19T12:25:03.362Z",
"dateUpdated": "2024-11-19T12:28:45.853Z",
"dateDeleted": null
},
"limitUsed": 3600
},
null
],
"employer": {
"id": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"email": "abhijhamb08@gmail.com",
"name": "CodeSofitc",
"dateCreated": "2024-11-19T12:25:03.297Z",
"dateUpdated": "2024-11-19T12:25:03.297Z",
"maxBenefitLimit": 20,
"payrolls": [
{
"id": "87c564fd-3501-4506-8feb-9aecb4227dfe",
"processingDate": 28,
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"dateCreated": "2024-11-19T12:25:03.402Z",
"dateUpdated": "2024-11-19T12:25:03.402Z",
"dateDeleted": null
},
{
"id": "03c9d391-ccb3-4d8f-a2fa-bf0581ab59fc",
"processingDate": 28,
"employerId": "8b24c944-c9bc-4e0a-86e4-fe6ceab282fa",
"dateCreated": "2024-11-19T12:25:03.409Z",
"dateUpdated": "2024-11-19T12:25:03.409Z",
"dateDeleted": null
}
]
#6
BotSailor
Okay Thank You. We are monitoring the forum also here https://botsailor.com/forum/thread/1126-update-on-http-api as seems same feature.

Thanks
#7
BotSailor
We are working on it. In the next version we will implement dynamic list in WhatsApp from http api value which will be assigned to custom field.

Thanks
#8
Dishang Shah
#7

BotSailor

means on or before 11th jan 2025?
because i noticed you provide update between 5-15
#9
BotSailor
We have implemented it and we are testing right now. Soon this dynamic list section for interactive message of WhatsApp will be released with proper documentation.

Thanks
#10
BotSailor
Here is great news that we have released this most waiting feature. https://botsailor.com/blog/use-dynamic-lists-in-interactive-whatsapp-message

Cheers :)

Konok
#11
Aji
cant able to list more than 5 products
#12
BotSailor
#11

Aji

What problem you are facing please ? Would you please let me know the if you found any error in bot error log ?

Thanks
#13
Aji
No Error Log found. More than 5 Product Bot Reply not working But HTTP Triggered.
#14
BotSailor
#13

Aji

It should work if the JSON is correct. Please contact our support desk to check the issue for you what actually happened.

Thanks
#15
BotSailor
#13

Aji

We have fixed the glitch. Now it will work as expected.

Thanks
#16
BotSailor
We have provided an update that now you can use different type of JSON format for dynamic list creation for WhatsApp interactive message. Here we have provided example and configuration also https://botsailor.com/blog/use-dynamic-lists-in-interactive-whatsapp-message

Best Regards
Konok
#17
Dishang Shah
okay thanks