For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Use Pia Actions with Inline Tools

With inline tools, you expand the text instructions (prompts) of your AI agent Pia with functional interfaces to the PASCOM phone system and external services. Instead of describing actions purely in text, you insert structured interactive building blocks directly into your prompt.

Access Inline Tools in the Prompt Editor

1

Open the AI Agents settings

In the Admin Dashboard, navigate to Call Routing > AI Agents.

2

Select the Pia prompt

Select your desired Pia agent and switch to the Pia Prompt section.

3

Insert an action

There are two ways to insert an action:

  • Keyboard command: Type a slash (/) at the desired position in the text field. The inline tools context menu opens with all available tools.

  • Button: Above the text field, click the Add prompt action button.

1. Forward to Team

This action seamlessly transfers the conversation from Pia to an internal queue or team.

  • Selection: Select /team and specify the target team (e.g., /team:Support or /team:Sales).

  • How it works: When Pia identifies during the conversation that the caller's request matches the defined team, she ends the AI dialog and connects the call to the team.


2. Set and Read Labels

Labels serve as structured data containers in PASCOM. They attach important information directly to the call, allowing employees in the PASCOM app to see the context immediately.

Pia can utilize labels in two ways:

Populate Labels (Write)

  • Status information: Pia assigns the call to a category (e.g., label Support or Sales).

  • Enrich with custom data: Pia requests specific details from the caller and stores the text content in the label (e.g., label Customer Number: 10482 or Issue: PC does not start).

Example prompt instruction:

Read Labels (Read)

Pia can evaluate existing labels from the preceding call history.

For example, if a caller presses 1 for Prescription orders in an upstream IVR menu, the label Prescription is automatically attached to the call. Pia reads this label at the beginning of the dialog and greets the patient with specific context:

"Hello! I see you would like to order a prescription. Which medication do you need?"

Labels must be pre-defined:

Pia can write arbitrary data into labels, but does not create new label types automatically. Define all required labels in advance under Call Routing > Labels.


3. Use Caller Context

Through caller context, Pia accesses caller master data in real time. If the PASCOM phone system recognizes the telephone number in the central phonebook, all contact details become available to Pia as variables.

Available Context Fields Overview

Menu Field
Source & Behavior
Purpose & Example

Caller Number (Anrufernummer)

Provided directly by the PASCOM trunk. Always available, even if the caller is not in the phonebook.

Identification and logging: "I have recorded your phone number /Anrufernummer."

Caller Name (Anrufername)

Originates from the phonebook. Contains the full name.

Greeting known customers: "Hello Mr. /Anrufername."

First Name / Last Name (Vorname / Nachname)

Separate name fields from the phonebook.

For natural salutations: "Hello Ms. /Nachname."

Display Name (Anzeigename)

The formatted contact name in the PASCOM system.

Clear presentation in dialog transcripts.

Organization (Organisation)

Company or client name from the phonebook.

Personalized greeting for corporate clients: "Are you calling regarding /Organisation?"

Email (E-Mail)

Email address saved in the phonebook.

Verification for callbacks or confirmations: "Should we send the confirmation to /E-Mail?"

Notes (Notizen)

Free-text contact notes from the phonebook.

Taking specific customer requirements into account.

Inbound Rule (Eingehende Regel)

Name of the dialed inbound rule in PASCOM (e.g., Service-Hotline or Zentrale-DE).

Enables Pia to recognize which line the call arrived on.


4. Schedule Appointment (Microsoft 365 Calendar)

With the /Termin vereinbaren action, Pia schedules appointments autonomously in a connected Microsoft 365 calendar. Pia checks available time slots in real time, offers options to the caller, and books the confirmed appointment.

Prerequisite

Before use, an administrator must set up a Microsoft 365 Calendar connector under Settings > Connector and authenticate it via a Microsoft 365 account. This connector is then automatically provided to Pia. (The guide for setting up the Microsoft 365 calendar can be found here: Calendar from Microsoft 365)

Configure Calendar Settings

1

Insert the calendar element

Insert the calendar element into your prompt using /Termin vereinbaren.

2

Open the settings dialog

Click the inserted element to open the settings dialog.

Overview of Calendar Configuration for Pia

Parameter
Description
Recommended Value / Example

Calendar (Kalender)

Selection of the Microsoft 365 target calendar (e.g., personal calendar or shared team calendar).

Support Calendar or Dr. Miller

Meeting Duration (Termindauer)

Fixed duration of the booked appointment slot.

30 minutes

Buffer Time (Pufferzeit)

Break between consecutive appointments to prevent overlaps.

15 minutes

Number of Slot Suggestions (Anzahl Terminvorschläge)

Maximum number of open appointment slots Pia offers to the caller at once.

3 suggestions

Minimum Lead Time (Mindestvorlaufzeit)

Minimum hours or days required between the call and the earliest available slot (prevents unprepared surprise bookings).

2 hours or 24 hours

Max. Booking Horizon (Max. Buchungshorizont)

How far into the future appointments can be scheduled.

14 days

Availability Hours (Verfügbarkeitszeiten)

Time windows when bookings are generally permitted (e.g., during office hours only).

Business hours

Absence Calendar (Abwesenheitskalender)

Specifies which sub-calendar is checked for vacation, holidays, or closing times so that no appointments are offered on those days.

Vacation / Absence

Use sub-calendars as absence calendars:

In Microsoft 365, you can manage separate sub-calendars alongside your primary calendar (e.g., Work, Vacation, Training). Use the Absence calendar field to select the specific calendar that defines blocked days. Pia will not suggest appointments on dates with recorded absences.


Practical Example: Complete Prompt with Inline Tools

The following example demonstrates how the different inline tools work together in a production prompt:

Last updated

Was this helpful?