Skip to main content

Editing call scripts and objections

This guide describes how to create, edit, test and publish call scripts and objections in the module wb_voip_skript. It is written for the people who maintain scripts. The labels are those of the English interface. Setup and licensing of the base module are covered in the setup guide.

The ? button on the script form and in the toolbar of the flow editor opens this guide in a new browser tab. The online version is at https://docs.wissen-beratung.de/en/wb-voip/19/scripts/.

1. Terms​

  • Call script: guides agents through a conversation. Its content lives in versions.
  • Version: a state of the script. State Draft, Published or Old. A script has at most one draft and one published version.
  • Step: a section of the conversation with text to read out, questions and transitions.
  • Question: asked in a step. The answer is stored and can be written to a field of the opportunity or the contact.
  • Transition: leads to the next step, as a button or automatically through a condition.
  • Objection: an objection raised by the other person, with a suggested answer. Objections are available in every step.

2. Requirements and rights​

  • The module needs wb_voip_crm (CRM integration).
  • Call scripts have their own licence: valid licences for the products VOIP and VSKR are required. Without a valid licence, or if the package allows fewer users than the database has active internal users, scripts cannot be started and the flow editor and the test cannot be opened. A run already started can be finished (next, back, objections). The objection report is not bound to a licence.
TaskWB VoIP: UserWB VoIP Scripts: EditorWB VoIP: Administrator
Run published scripts during a callyesyesonly with group "WB VoIP: User"
See draftsnoyesonly as editor
Create, edit, publish scriptsnoyesonly as editor
Read the objection reportnoyesyes
Set up the call button "Call script"nonoyes
See own script runsyesyesyes
See other agents' script runsnonono
  • The group WB VoIP Scripts: Editor includes "WB VoIP: User".
  • With several companies, users only see scripts of the companies they are allowed in.
  • Answers carry the agent and the date, so an evaluation per agent would be possible. In Germany that is a technical means of monitoring performance and needs the works council's consent (§ 87 (1) no. 6 BetrVG). Settle this before rolling the module out.

3. Where to find scripts and objections​

  • Call scripts › Call scripts: list of all scripts (editors only).
  • Settings › Technical › WB VoIP › Call scripts: the same list for editors who can reach the settings.
  • Call scripts › Reporting › Objections: objection report (editors and WB VoIP administrators).
  • Objections have no menu of their own. They belong to a version and are maintained in the flow editor (section 6).

4. Create a script​

  1. Open Call scripts › Call scripts.
  2. Click New.
  3. Enter a Name, for example "Appointment booking".
  4. With several companies, choose the Company.
  5. Save. The script gets an empty draft (version 1).
  6. Click Edit flow. The flow editor opens.

The form shows Published version, Draft and, in the Versions tab, all versions with version number, state, Published on and Published by.

5. The flow editor​

The editor has four areas:

  • Toolbar at the top: name of the version, buttons New step, Save, Objections, Test and Publish. Next to them appear "Unsaved changes", "Saved." or "Read only". On the far right, ? (Help) opens this guide.
  • Canvas: each step is a box showing its name and hints such as "Start", "2 question(s)" or "End". Dashed arrows show the default next step, solid arrows the transitions with button text and condition.
  • Check before publishing below the canvas: lists everything that prevents publishing. A click on an entry selects the step concerned. Without findings it reads "No problems found." The list is updated when saving.
  • Side panel on the right: edits the selected step. Without a selected step it shows the objections.

Only drafts can be edited. The editor shows a published or old version as "Read only".

5.1 Add and edit steps​

  1. Click New step. The first step of a version automatically becomes the start step.
  2. Drag the box to a suitable place. Its position has no meaning for the flow.
  3. Fill in the side panel:
    • Step name (required, at most 200 characters).
    • Text to read out. HTML is allowed. Placeholders: {name}, {vorname} (first name), {nachname} (last name), {firma} (company), {vorgang} (opportunity), {agent}. Name, first and last name come from the contact, company and opportunity from the opportunity, {agent} is the agent's name. Unknown placeholders and values the agent may not read stay empty. Placeholders work only in the text, not in HTML attributes such as a link target.
    • Show the text if: optionally a condition (section 5.4). Without a condition it reads "always".
  4. Choose the Default next step if the step should continue without a particular condition.
  5. For the last step of a path, tick End step. Optionally enter a Suggested outcome (outcome code suggested when the call ends here).
  6. Use Make start step to set where the script begins.
  7. Use Delete step to remove the step. Transitions, default next steps and objection jumps to this step are removed with it.
  8. Click Save.

5.2 Questions and answer options​

  1. Select the step and click Add question.
  2. Enter the question text (field "Question", at most 500 characters).
  3. Check the key in the field next to it (tooltip "Key (a-z, 0-9, _)"). The editor suggests frage_1, frage_2 and so on. Allowed are 1 to 40 characters a-z, 0-9 and _, starting with a letter. Each key may be used only once per version. Conditions refer to this key.
  4. Choose the type: Text, Number, Date, Yes/No, Choice or Multiple choice.
  5. For Choice and Multiple choice, enter the answer options, one option per line: 1 to 50 different options of at most 200 characters each.
  6. Tick Required if the agent must answer the question before going on.
  7. Tick Special category (Art. 9 GDPR) for health, religion, political opinion and other special categories of personal data. Such answers are never written to fields, chatter or reports. Ticking it removes a chosen field mapping.
  8. Under Ask if, optionally set when the question appears (section 5.4).
  9. Use the bin icon (Remove question) to delete a question.

5.3 Where answers are stored​

Every answer is stored and shown in the Call data tab of the opportunity and the contact (section 10). In addition, a question can write its answer to a field:

  1. In the question, choose Opportunity or Contact instead of Do not write to a field.
  2. Choose the field under Choose a field. Only fields that fit the question type are offered:
Question typeFitting field types
Texttext (single and multi line)
Numberinteger, decimal, monetary
Datedate
Yes/Noboolean
Choicetext, selection, link to a country or state
Multiple choicetext (the choice is written as text)
  • Technical and structural fields are not offered, for example company, salesperson, stage, team, probability, company/person and parent contact, nor fields restricted to particular groups.
  • The field is written with the agent's rights. If that fails, the answer is kept and the reason appears in the column Field note (section 10).
  • For a selection field, the option must match exactly one value of the field (technical value or displayed text). For country and state, the option must match exactly one entry by code or name.
  • If you change the question type, a field that no longer fits is removed.

5.4 Transitions and branches​

A step continues as follows:

  • Button: a transition with button text appears as a button during the call. The agent chooses it.
  • Automatic: transitions without button text apply automatically if their condition holds, in the order shown. The first match wins.
  • Default next step: applies if no automatic transition matches.

To add a transition:

  1. Select the step and click Add transition.
  2. Choose the target under Choose the next step.
  3. Optionally enter a Button text (optional), for example "Not interested" (at most 100 characters).
  4. Optionally for buttons: tick Usable without answering required questions. The button then works even if required questions are open.
  5. Optionally set under Condition when the transition applies. During the call, a button whose condition does not hold is greyed out.
  6. Use Remove transition (bin) to delete it.

Conditions exist on step texts, questions and transitions.

  • Simple: choose a question (key), a comparison and a value. Comparisons: =, ≠, >, <, contains, is empty, is not empty. For yes/no questions choose yes or no, for choice questions an option. Choosing always removes the condition.
  • Advanced (JSON): for combinations with "und" (and) or "oder" (or). Example: {"oder": [{"frage": "interesse", "op": "gleich", "wert": "ja"}, {"frage": "rueckruf", "op": "nicht_leer"}]}. Comparisons in JSON: gleich (equals), ungleich (not equal), groesser (greater), kleiner (less), enthaelt (contains), leer (empty), nicht_leer (not empty). At most 5 levels and 50 parts. Use Simple to switch back if the condition consists of one comparison only.
  • A condition may only use questions asked before: in an earlier step or higher up in the same step. Transitions may use all questions of their own step.

5.5 Save​

  1. Click Save. The editor sends the whole draft. The server checks every value and saves all or nothing.
  2. If someone changed the draft in another window in the meantime, "The draft has been changed in the meantime. Please reload it." appears. Click Reload (discards unsaved changes) and apply your changes again.

Important: the editor does not warn when you leave the page with unsaved changes. Save regularly.

6. Objections​

Objections belong to a version and are available in every step during the call.

Add or edit an objection​

  1. Open the script and click Edit flow.
  2. Click Objections in the toolbar. The side panel shows the list of objections.
  3. Click Add objection. "New objection" appears.
  4. Enter a short name in the field Objection, for example "No time" (at most 200 characters). This name appears as a button during the call.
  5. Enter the suggested answer under Answer (HTML allowed).
  6. Choose what happens after the objection:
    • Stay in the step: the agent stays in the current step.
    • a step: the script jumps to this step. A jump target counts as reachable even if no transition leads there.
  7. Use Remove objection (bin) to delete an objection.
  8. Click Save.

The order of the objections in the editor is also the order of the buttons during the call. Objections cannot be assigned to individual steps.

What the agent sees​

  • The objections are buttons above the questions of the step.
  • A click shows the answer below them and counts the objection for the report.
  • If the objection has a jump target, the script moves there. Back returns to the previous step.
  • After the script has ended, no objections are shown.

7. Test​

  1. Click Test in the editor.
  2. If there are unsaved changes, the editor asks "Save and test?". The test always uses the saved draft. Confirm with Save and test.
  3. The Test run (nothing is saved) runs in the side panel. It behaves like a real run: questions are shown and hidden, required questions are checked, buttons, back and objections work.
  4. No run, no answers and no field changes are created. Placeholders stay empty except {agent}, because no opportunity or contact is attached.
  5. End the test with Close.

Clicking Test again starts the test from the beginning.

8. Publishing and versions​

Publish​

  1. Check the list Check before publishing. It must show "No problems found."
  2. Click Publish. Unsaved changes are saved first.
  3. If there are problems, "The version cannot be published:" appears with a list. Fix the points and publish again.
  4. On success, "The version has been published." appears. The version is now Published and can no longer be changed. The previously published version becomes Old.

Change a published script​

  1. Open the script.
  2. Click Edit flow. If there is no draft yet, Odoo creates one as a copy of the published version with the next number. If a draft exists, it opens.
  3. Edit, test and publish the draft as above.

What happens to running calls and history​

  • New runs always start with the currently published version.
  • A run stays with the version it started with. A call in progress is therefore not affected by publishing.
  • Stored answers keep the key and question text of the version they were given in.
  • Old versions are kept. The objection report shows objections with their version number.

Archive and delete​

  • A script that has ever been published cannot be deleted. Archive it instead.
  • The company of such a script can no longer be changed.
  • An archived script can no longer be started during a call.

9. Script during a call​

Set up the button (WB VoIP administrator)​

A script is opened through a call button of the type Call script.

  1. Open Settings › Technical › WB VoIP › Call buttons.
  2. The module ships the button Script. It is inactive. You can also create your own button of the type Call script.
  3. Choose the script in the field Call script.
  4. Set the button to Active. Check the places In the caller window and In the softphone.

The button only appears if the licence VSKR is valid, the agent may read the script and it has a published version.

The flow from the agent's view​

  1. During the call the agent clicks the button. The script opens in a window.
  2. The agent reads out the text and answers the questions. Required questions are marked with *. Questions appear and disappear depending on the answers.
  3. The agent clicks Next or a button. Only answers to visible questions are sent.
  4. Back goes one step back. Answers of the step that is left are discarded after confirmation ("Go back?").
  5. In the end step the button reads Finish. Afterwards "The script has ended." is shown.
  6. If the agent opens the button again during the same call, the script resumes the run. There is one run per call and version.

In the softphone the script may appear folded. Show text and objections unfolds text and objections.

The run is attached to the opportunity if the agent may change it, and to the contact if the contact belongs to that opportunity (directly or through the same company). Without an opportunity, the contact is attached if the agent may change it. Otherwise the run starts without them.

A run ends with the call, at its end step, or at the latest four hours after its start.

10. Call data on the opportunity and the contact​

Every answer appears in the Call data tab of the opportunity and the contact with the columns Recorded on, Question text, Answer, Special category and Agent, optionally Written to field and Field note. Answers cannot be edited or deleted there.

  • Normal answers can be read by everyone who may read the opportunity (without one: the contact).
  • Answers of special categories can be read only by the salesperson of the opportunity, script editors and the recording agent while the run is open.

Possible entries in Field note:

NoteMeaning
No opportunity to write the field to.The run has no opportunity.
No contact to write the field to.The run has no contact.
The field cannot be used.The field is not (or no longer) allowed.
You are not allowed to change this record.The agent lacks write access.
The value does not fit the field.The field rejected the value.
Only whole numbers fit this field.Decimal number for an integer field.
The text is too long for this field.Text longer than the field allows.
The value is not an option of this field.The option matches no value of the selection field.
The value does not match exactly one entry.Country or state not found unambiguously.

11. Objection report​

  1. Open Call scripts › Reporting › Objections.
  2. The pivot table shows the Count per objection and month. Switch to the graph with the view switcher.
  3. Group by Script, Version, Objection or Day. Filter by Date.

Notes:

  • Every objection an agent opens during a script run is counted. Test runs do not count.
  • The report contains neither answers nor agents.
  • The day is the calendar day in UTC. An objection shortly after midnight local time may count for the previous day.
  • Finished runs are deleted after the retention period (system parameter wb_voip_skript.aufbewahrung_tage, default 90 days). Their objections then no longer appear in the report.

12. Tips​

  • Keep steps short: one thought, few questions. Long texts are not read out in full during a call.
  • Write the text the way the agent should say it. Use placeholders for names.
  • Use meaningful keys (for example interest, appointment_date) instead of frage_1. Do not rename keys later: conditions are not updated (see section 13).
  • Give buttons such as "Not interested" the tick Usable without answering required questions.
  • Test every path through the script before publishing.
  • Check field mappings with a test contact, because the test does not write fields.

13. Messages when saving and publishing​

MessageCause and remedy
Please fill in all names and texts.A step, question or objection has no name or text.
Each question key may be used only once per version.Two questions have the same key.
Invalid question key "…": use 1 to 40 characters a-z, 0-9 and _, starting with a letter.The key contains capitals, umlauts, spaces or starts with a digit.
A choice question needs 1 to 50 different options, each a text of at most 200 characters.Options missing, duplicated or too long.
A step cannot be its own default next step.Set the default next step to another step.
Answers of special categories (Art. 9 GDPR) must not be written to a field.Remove the field mapping or the tick "Special category".
The field "…" cannot be used for this question.The field does not fit the question type or is blocked.
Texts must not contain control characters.Invisible control characters, often from copied text. Type the text again.
The condition refers to an unknown question: …The key does not exist, often after renaming a key. Adjust the condition.
This is not valid JSON.Typing error in the advanced condition.
The draft has been changed in the meantime. Please reload it.See section 5.5.
A published version of a call script cannot be changed. Create a new draft instead.Click Edit flow on the script.

Findings in the list Check before publishing:

FindingRemedy
The version has no steps.Add steps.
No start step is set.Make start step on the first step.
Step "…" has no successor and is not an end step.Set a default next step or a transition, or tick End step.
Step "…" cannot be reached from the start step.Add a transition or objection jump to it, or delete the step.
Loop without a way to an end step: …Add a way out of the loop to an end step.
Step "…": the condition uses question "…", which is not asked before.Ask the question earlier or change the condition.
Question "…": field "…" cannot be used.Choose another field mapping.

14. Limits​

  • Per version at most 200 steps and 100 objections, per step at most 50 questions and 30 transitions.
  • Text lengths: names 200 characters, question text 500, button text and suggested outcome 100, step text and objection answer 50,000.
  • Renaming a key does not update the conditions.
  • The editor does not warn before leaving the page with unsaved changes.