Set Data
You can set data to a thread using the set_data
function:
from abstra.workflows import set_data
set_data('key', 'value')
info
value
can be any JSON-serializable object.
Examples
Working with multiple items at once
Apart from setting and getting data one by one, you can set multiple items at once:
from abstra.workflows import set_data
info = {
"name": name,
"email": email,
"phone": phone,
"company": company,
"website": website,
"industry": industry
}
set_data("form_info", info)