in chat-client/client_utils.py [0:0]
def retrieve_dialog_response(notes, blogs):
return {
"action": {
"navigations": [
{
"pushCard": {
"sections": [
{
"widgets": [
{
"selectionInput": {
"name": "contactType",
"label": "Product",
"multiSelectMaxSelectedItems": "300",
"multiSelectMinQueryLength": "0",
"type": "MULTI_SELECT",
"items": notes,
}
},
{
"selectionInput": {
"name": "blogType",
"label": "Blog Category",
"multiSelectMaxSelectedItems": "300",
"multiSelectMinQueryLength": "0",
"type": "MULTI_SELECT",
"items": blogs,
}
},
# {
# "selectionInput": {
# "name": "interval",
# "label": "I would like to check for new updates every:",
# "type": "RADIO_BUTTON",
# "items": [
# {
# "text": "5 minutes",
# "value": "5m",
# "selected": False,
# },
# {
# "text": "30 minutes",
# "value": "30m",
# "selected": False,
# },
# {
# "text": "1 hour",
# "value": "1hr",
# "selected": False,
# },
# {
# "text": "8 hours",
# "value": "8hr",
# "selected": False,
# },
# {
# "text": "24 hours",
# "value": "24hr",
# "selected": False,
# },
# ],
# }
# },
{
"buttonList": {
"buttons": [
{
"text": "Subscribe",
"onClick": {
"action": {
"function": os.environ.get(
"BASE_URL"
),
"parameters": [
{
"key": "actionName",
"value": "submitDialog",
}
],
}
},
}
]
}
},
]
}
]
}
}
]
}
}