Problem with dialogue action hook I am calling a dataframe from cloud function action. I get dailogue node error on first time but I can see the result in context variable.
I have tried passing the variable in different ways
JSON response
{
"output": {
"generic": [
{
"values": [
{
"text": "$result.message"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"actions": [
{
"name": "xxxxxx[In context variable result is received[![\]\[1\]][1]][1]l.com_dev/dep/sample",
"type": "server",
"credentials": "$private.cf_creds",
"result_variable": "$result"
}
]
}
'''python
import pandas as pd
import json
def main(dict):
file_name = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
df = pd.read_csv(file_name)
df.head()
print(df.head())
result = { 'message': df.head(5).to_json() }
return result
'''
I expect result.message output but I get output as per the screenshots