Conversation & state
The conversation itself: IDs, messages, intents, counters and history.
The conversation itself: IDs, messages, intents, counters and history. How to add a tool and use its result is described in Tools & smart functions.
Conversation in HTML
get_conversation_as_html
Returns structured summary of customers conversation so far as html string.
any
Conversation Recording
get_conversation_recording
Returns recording data of current conversation in WAV format.
any
Counter extractor
counter
Extract the number of times a particular node has been visited in the conversation.
any
Current conversation id
current_conversation_id
Extract the current conversation ID from the conversation context.
any
Last utterance extractor
utterance
Extract the raw text of the user’s last utterance from the conversation history
any
Preprocessed utterance
preprocessed_utterance
Joins preprocessed tokens into a full user utterance.
any
Previous conversations
previous_conversations
Return the count or list of previous conversations for a user based on filters and verbosity.
any
Selected intent
selected_intent
Extract details of the most recent ACTIONS-selected intent from conversation history
any
Utterance score
get_utterance_score
Returns output of intent recognition in conversation history (candidates for intents with their score).
any
Widget announcement
widget_announcement
Returns data for the announcement widget
any
Winning intent
winning_intent
Check if a specified intent wins with a score above a threshold. Works only with training set intents
any
Conversation in HTML
Technical name: get_conversation_as_html
Returns structured summary of customers conversation so far as html string.
Deduplicate user input
deduplicate_user_input
no
True
If set to True, extractor will deduplicate user input.
Example input: previous Goodbot - user interactions.
Example output:
Conversation Recording
Technical name: get_conversation_recording
Returns recording data of current conversation in WAV format.
Can also be used in expressions as
get_conversation_recording().
Example input: current conversation
Example output:
Counter extractor
Technical name: counter
Extract the number of times a particular node has been visited in the conversation.
Not shown in the tool list until you type its name – start typing
counter.Advanced – usually set up together with Born Digital.
Storage
storage
no
fallback_counters
Name of the variable to store visit counts.
Local incrementation
local
no
True
When on, count separately for this node; when off, use one counter for the whole conversation.
Example input: CThis function does not use the user input utterance.
Example output:
Current conversation id
Technical name: current_conversation_id
Extract the current conversation ID from the conversation context.
Example input: This function does not use the user input utterance.
Example output:
Last utterance extractor
Technical name: utterance
Extract the raw text of the user’s last utterance from the conversation history
Not shown in the tool list until you type its name – start typing
utterance.Can also be used in expressions as
last_utterance().Advanced – usually set up together with Born Digital.
Example input: I would like to check my balance
Example output:
Preprocessed utterance
Technical name: preprocessed_utterance
Joins preprocessed tokens into a full user utterance.
Example input: This function does not use the user input utterance.
Example output:
Previous conversations
Technical name: previous_conversations
Return the count or list of previous conversations for a user based on filters and verbosity.
Filter key
filter_key
no
PhoneNumber
Key to filter previous conversations by (e.g., 'customer_id').
Filter value
filter_value
no
Value to match for the filter key in previous conversations.
Weeks
weeks
no
0
Number of weeks to look back for past conversations.
Days
days
no
0
Number of days to look back for past conversations.
Hours
hours
no
0
Number of hours to look back for past conversations.
Minutes
minutes
no
0
Number of minutes to look back for past conversations.
Seconds
seconds
no
0
Number of seconds to look back for past conversations.
Ignore user id
ignore_user_id
no
False
When on, previous conversations are not filtered by user_id.
Verbose
verbose
no
False
When on, return a list of the conversations instead of their count.
Variables
variables
no
[]
List of variable names to include in verbose output.
Db tables
db_tables
no
List of database table names to search for previous conversations.
Example input: This function does not use the user input utterance.
Example output:
Selected intent
Technical name: selected_intent
Extract details of the most recent ACTIONS-selected intent from conversation history
Example input: This function does not use the user input utterance.
Example output:
Send call to analytics
Technical name: send_call_to_analytics
Sends the finished voice call – its recording or its transcript, with call details and the flow variables you pick – to an Insights project, the same way realtime agents do. Call it from the node that the hang-up signals (call_end_customer_hangup, call_finished) lead to. The tool returns at once; the call reaches Insights when its recording is ready (up to 5 minutes). A call is sent only once.
project_id
Analytics project ID
yes
–
The Insights project the call is sent to (its ID, or a {variable} holding it).
analyse
Analyse
yes
audio
audio – the recording (the transcript when there is no recording), or transcript.
metadata_variables
Metadata variables
no
–
Flow variables sent as call metadata. Pick them from the list of the flow's variables.
send_all_metadata
Send all variables
no
false
Send every simple flow variable as metadata.
Call and conversation IDs, both phone numbers, call direction, start, end, duration and end reason are always sent. Secret and not-logged variables are never sent.

Set up by Born Digital on request: the connection to Insights must be configured for your environment.
Example output:

Utterance score
Technical name: get_utterance_score
Returns output of intent recognition in conversation history (candidates for intents with their score).
Return all
return_all
no
False
If set to True, extractor will return all last intents.
Example input: utterance
Example output:
Widget announcement
Technical name: widget_announcement
Returns data for the announcement widget
Can also be used in expressions as
widget_announcement().
Widget ID
widget_id
no
ID of the announcement to return.
Winning intent
Technical name: winning_intent
Check if a specified intent wins with a score above a threshold. Works only with training set intents
Threshold
threshold
yes
Score threshold to compare against the winning intent score
Target intent
target
yes
Intent name or pattern to check for dominance
Example input: Please change my day limit
Example output:
Last updated
Was this helpful?