How to get a list of all expressions in the system

While creating and testing configurations, it is very useful to be able to get the list of all expressions in the session and their current values. Based on this list you are able to see if your triggers actually work or if you should use different expressions to make them work.

To do this, just evaluate the special expression for the purpose. Use the placeholder {core.expressions}.

For example, send yourself an email using an action (local event) in an application module and in the body of the email put the placeholder {core.expressions}.

Your action will look something like this:

send_email_action_with_core_expressions.png

When you receive the email it will look something like that below. Note that this will show you both the correct expression to use in your config and its value in the current session at the moment/state you triggered it to be sent. For example, you will know that you should use the placeholder {call.to.number} evaluates to "4930920373321".

[sampler.random] evaluates to [0.30039662] 
[sampler.random10] evaluates to [4] 
[sampler.random100] evaluates to [24] 
[core.always] evaluates to [true] 
[bool.false] evaluates to [false] 
[bool.true] evaluates to [true] 
[sampler.uuid4] evaluates to [655dfc72-a346-496a-9287-0b78aeac5a3f] 
[sampler.hash] evaluates to [98f9b768f5e346bab1a2db3d3dd83718] 
[core.time] evaluates to [1508855123974] 
[customer.accessId] evaluates to [4ad5e965-0733-441e-b508-985f04145867] 
[customer.email] evaluates to [meohmy@mymail.com
[calendar.7ee49c49-c985-4ea8-aa13-66e1d0925941.is.HOLIDAY] evaluates to [false] 
[calendar.3ca17d1c-2aac-43ae-aa37-60a7b4dd6c55.is.HOLIDAY] evaluates to [false] 
[hours.2377e79b-1e77-4117-bb91-037dfa2c1175.in.hours] evaluates to [false] 
[hours.62a9ee4d-5937-4f8e-9143-2fc348a7e228.in.hours] evaluates to [true] 
[hours.b4efbe6f-a0b7-4d8e-877a-09392bbbd5c2.in.hours] evaluates to [false] 
[call.id] evaluates to [f62ca10dd9f14ebd9189d8c5b908c12e] 
[call.from] evaluates to [4930920373300] 
[call.from.number] evaluates to [4930920373300] 
[call.from.anonymous] evaluates to [false] 
[call.from.mobile] evaluates to [false] 
[call.displayAs] evaluates to [null] 
[call.to] evaluates to [4930920373321] 
[call.to.number] evaluates to [4930920373321] 
[call.to.mobile] evaluates to [false] 
[call.duration] evaluates to [21.01] 
[call.type] evaluates to [inbound] 
[call.domain] evaluates to [external] 
[call.state] evaluates to [bridged] 
[call.finishReason] evaluates to [null] 
[call.domain.internal] evaluates to [false] 
[call.domain.external] evaluates to [true] 
[call.source] evaluates to [queue] 
[call.type.inbound] evaluates to [true] 
[call.type.outbound] evaluates to [false] 
[call.state.init] evaluates to [false] 
[call.state.scheduled] evaluates to [false] 
[call.state.ringing] evaluates to [false] 
[call.state.in_progress] evaluates to [false] 
[call.state.failed] evaluates to [false] 
[call.state.completed] evaluates to [false] 
[call.state.queued] evaluates to [false] 
[call.state.bridged] evaluates to [true] 
[call.state.canceled] evaluates to [false] 
[call.state.busy] evaluates to [false] 
[call.state.no_answer] evaluates to [false] 
[call.recording.url] evaluates to [https://services.babelforce.com/recording/4ad5e965-0733-441e-b508-985f04145867/a371bb0169344a23a395f2b8cfab5850/stream.wav
[call.recording.id] evaluates to [a371bb0169344a23a395f2b8cfab5850] 
[call.recording.tags] evaluates to [[]] 
[call.recording.duration] evaluates to [-0.0] 
[call.recording.file.size] evaluates to [null] 
[agent.id] evaluates to [61c8d77b-6e30-40b8-a33c-b200678af98d] 
[agent.sourceId] evaluates to [462175912] 
[agent.source] evaluates to [zendesk] 
[agent.name] evaluates to [Tynan Franks] 
[agent.number] evaluates to [999000005] 
[agent.enabled] evaluates to [true] 
[agent.email] evaluates to [tynan.franks@evashop.net
[agent.state] evaluates to [in-call] 
[agent.state.available] evaluates to [false] 
[agent.state.originated] evaluates to [false] 
[agent.state.ringing] evaluates to [false] 
[agent.state.in_call] evaluates to [true] 
[agent.state.busy] evaluates to [false] 
[agent.state.declined] evaluates to [false] 
[agent.state.unreachable] evaluates to [false] 
[agent.state.wrap_up] evaluates to [false] 
[agent.groups] evaluates to [[_all, Outbound Debt Collection]] 
[agent.tags] evaluates to [[autotestgroup, en]] 
[queue.id] evaluates to [9ebae3a1-abdb-4b32-80f3-349e2a1c2114] 
[queue.name] evaluates to [Main Queue] 
[queue.maxDialCount] evaluates to [1] 
[queue.calls.active] evaluates to [1] 
[queue.calls.bridged] evaluates to [1] 
[queue.calls.queued] evaluates to [0] 
[queue.waitTime] evaluates to [8.0] 
[queue.full] evaluates to [false] 
[queue.load] evaluates to [0.01] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.calls.active] evaluates to [1] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.calls.bridged] evaluates to [1] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.calls.queued] evaluates to [0] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.calls.full] evaluates to [false] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.calls.load] evaluates to [0.01] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.agents.available] evaluates to [2] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.agents.enabled] evaluates to [3] 
[queue.9ebae3a1-abdb-4b32-80f3-349e2a1c2114.agents.availablesoon] evaluates to [3] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.calls.active] evaluates to [0] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.calls.bridged] evaluates to [0] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.calls.queued] evaluates to [0] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.calls.full] evaluates to [false] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.calls.load] evaluates to [0.0] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.agents.available] evaluates to [0] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.agents.enabled] evaluates to [0] 
[queue.af5934ee-b3a6-4459-8ad6-6d7ddfc776a6.agents.availablesoon] evaluates to [0] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.calls.active] evaluates to [0] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.calls.bridged] evaluates to [0] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.calls.queued] evaluates to [0] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.calls.full] evaluates to [false] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.calls.load] evaluates to [0.0] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.agents.available] evaluates to [1] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.agents.enabled] evaluates to [1] 
[queue.387e89ca-bd34-49fc-8978-258f53c446bc.agents.availablesoon] evaluates to [1] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.calls.active] evaluates to [0] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.calls.bridged] evaluates to [0] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.calls.queued] evaluates to [0] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.calls.full] evaluates to [false] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.calls.load] evaluates to [0.0] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.agents.available] evaluates to [0] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.agents.enabled] evaluates to [0] 
[queue.02c77d51-0b1e-40ab-b6d0-1933a2d9f976.agents.availablesoon] evaluates to [0] 
[app.inputReader.voicerecoptout] evaluates to [null] 
[app.inputReader.refnumber] evaluates to [null] 
[app.simpleMenu.pcbchoice] evaluates to [null] 
[app.simpleMenu.voicerecchoice] evaluates to [null] 
[app.simpleMenu.serviceoption] evaluates to [null] 
[conversation.id] evaluates to [ad841d17ff1f408f9b167037023eddd9] 
[conversation.idleTime] evaluates to [5] 
[conversation.resumed] evaluates to [false] 
[sms.id] evaluates to [null] 
[sms.type] evaluates to [null] 
[sms.from] evaluates to [null] 
[sms.to] evaluates to [null] 
[sms.text] evaluates to [null] 
[obd.lead.id] evaluates to [null] 
[obd.lead.uid] evaluates to [null] 
[obd.lead.number] evaluates to [null] 
[obd.lead.number2] evaluates to [null] 
[obd.lead.number3] evaluates to [null] 
[obd.list.id] evaluates to [null] 
[obd.list.name] evaluates to [null] 
[obd.campaign.id] evaluates to [null] 
[obd.campaign.name] evaluates to [null] 
[consumer.number] evaluates to [4930920373300] 
[integration.id] evaluates to [null] 
[integration.label] evaluates to [null] 
[integration.type] evaluates to [null] 
[zendesk.subdomain] evaluates to [null] 
[transaction.key] evaluates to [null] 
[transaction.label] evaluates to [null] 
[transaction.message] evaluates to [null] 
[transaction.source] evaluates to [null] 
[zendesk.ticket.id] evaluates to [null] 
[zendesk.ticket.mode] evaluates to [null] 
[zendesk.enduser.name] evaluates to [Marie Müller] 
[zendesk.enduser.id] evaluates to [467080672] 
[zendesk.enduser.email] evaluates to [fake@email.net
[zendesk.enduser.number] evaluates to [+4930920373300
[ivr.mysession.pcs] evaluates to [null] 

(if you haven't noticed, the expression list in you find when you create a new trigger is identical to the core.expressions list - this way you can easily decide which trigger you can use at which point.)

Note, it is NOT a good idea to have this action triggered all the time. You could be sending around a very long text email automatically every single time the event trigger happens. So best to only evaluate core.expressions while you are testing or debugging a configuration you are working on.

 

 

 

 

 

Have more questions? Submit a request