iFrame widget¶
Show any web application right inside Daktela β your CRM's customer card next to a call, an internal portal on the agent dashboard β and pass it the caller's number or other activity data, so agents never have to search for the customer in a second window.
What it does and when to use it¶
The Page in iframe widget embeds an external web page into the Daktela interface. It works in three places:
- Open activities β the widget sits next to a call, e-mail or chat the agent is handling. The page address can include data from that activity, such as the caller's number, the queue or the linked contact, so your application opens on the right customer.
- Agent dashboard β a page that every user with a given access sees on their dashboard.
- Wallboards β a page shown on a wallboard screen.
Data flows one way, from Daktela to your page, in the page address. The embedded application works on its own: agents use it as they would in a browser tab, and it saves its data in its own system.
Typical use cases
- Customer card on every call. Open your CRM or ERP on the caller's record by passing the caller's number or the contact's customer ID.
- Order or booking lookup. Show the customer's orders from your e-shop next to the chat they're writing in.
- Scripts and checklists. Display an internal web form or knowledge page that matches the queue the activity came from.
- Team information. Put an intranet page, a shift plan or a status page on the dashboard or a wallboard.
Tip
To show an external page as a tab of tickets, CRM contacts or accounts, use Tabs. To open an external page in a new browser tab or popup window from an activity, see Screen pop.
Prerequisites and setup¶
Prerequisites¶
- In Daktela: an administrator account with access to queues (for activities), to accesses (for the dashboard) or to wallboards.
- Your web page: served over HTTPS and allowed to be shown in a frame on your Daktela domain β it must not block framing with an
X-Frame-Optionsheader or aContent-Security-Policy: frame-ancestorsrule that excludes Daktela.
Step 1: Add the widget¶
Choose where the page should appear:
- In open activities: go to Settings β Routings β Queues and click Change in the Widget settings column of the queue β see Widget scheme. The widget appears in every activity created through this queue.
- On the dashboard: go to Settings β Users β Accesses and click Dashboard in the Actions column of the access β see Changing the dashboard settings.
- On a wallboard: open the wallboard in Application β Wallboards β see Wallboards.
Then drag the Page in iframe widget from the list on the right into the layout.
Step 2: Configure the widget¶
Open the settings of the widget and fill in:
| Field | What to enter |
|---|---|
| Title | The name shown in the widget header. |
| URL | The address of your page. It can contain placeholders that Daktela replaces with real values β see Passing data to your page. |
| Allow features | Optional. Browser features the page may use, written as the iframe allow attribute β for example camera; microphone or fullscreen. |
| Height(px) | The height of the frame in pixels. Default: 300. |
| Widget description | Optional. Text shown next to the title β useful to tell apart several widgets of the same type. |
| Display in | Where the widget is shown: App only, Browser only or Everywhere. |
Save the widget scheme, dashboard or wallboard. In activities, agents see the page as soon as they open an activity from that queue.
Technical details¶
| Topic | Behaviour |
|---|---|
| Direction | Daktela β your page, through the URL only. Daktela doesn't read anything back from the page. |
| When the URL is built | When the widget is displayed β in an activity, from that activity's data; on a dashboard or wallboard, from the logged-in user's data. |
| URL encoding | In activity widgets, values inserted after ? are URL-encoded, so values containing &, # or spaces don't break the address (from versions 32.43.0 and 33.24.0). Dashboard and wallboard widgets insert values as they are. |
| Protocol | An address without a protocol gets the protocol of the Daktela page (https://). An address starting with /custom/ is loaded from your Daktela instance. Addresses with a protocol your instance doesn't allow aren't loaded; the widget shows No content to display instead. |
| Frame | A plain <iframe>, full width, with the height you set. The page runs in its own browser context; Daktela doesn't send it any messages after it loads. |
| Display in | App only widgets are meant for the Daktela mobile app. On the web dashboard they are not shown (from version 33.21.0). |
Passing data to your page¶
Placeholders in the URL are replaced when the page loads. There are two notations:
{{path}}β for examplehttps://crm.example.com/search?phone={{activity.item.clid}}'+path+'β the older notation, for examplehttps://crm.example.com/search?phone='+activity.item.clid+'
Which data you can use depends on where the widget is:
| Placeholder | Value | Activity widget | Dashboard, wallboard |
|---|---|---|---|
'+aclUserData.user.name+' |
Login name of the logged-in user | Yes | Yes |
'+aclUserData.user.title+' |
Display name of the logged-in user | Yes | Yes |
{{activity.name}} |
Unique ID of the activity | Yes | β |
{{activity.type}} |
Activity type, for example CALL, EMAIL, CHAT |
Yes | β |
{{activity.queue.name}}, {{activity.queue.title}} |
Queue ID and name | Yes | β |
{{activity.item.clid}} |
Calls: the customer's phone number | Yes | β |
{{activity.item.did}} |
Calls: the dialled (your) number | Yes | β |
{{activity.item.direction}} |
Calls: in, out or internal |
Yes | β |
{{activity.item.id_call}} |
Calls: unique ID of the call | Yes | β |
{{activity.contact.name}} |
Unique ID of the linked CRM contact | Yes | β |
{{activity.contact.customFields.<field>[0]}} |
A custom field of the linked contact | Yes | β |
{{activity.record.customFields.<field>[0]}} |
A custom field of the linked campaign record | Yes | β |
activity holds the activity as returned by the REST API, and activity.item the channel-specific part (for calls see ActivitiesCall), so you can reach any other property the same way. A placeholder that doesn't exist is replaced with an empty string. Custom fields are lists, which is why their placeholders end with [0].
Tip
For more about placeholders, see Templates β How to use variables.
Troubleshooting¶
- The widget stays blank. The page refuses to be framed (
X-Frame-Optionsorframe-ancestors), or it useshttp://, which browsers block inside the HTTPS Daktela page. Open the browser's developer console to see which. - No content to display is shown. The URL is empty or uses a protocol your instance doesn't allow.
- A value is missing in the address. The placeholder doesn't exist for this activity β for example
activity.item.clidin an e-mail, or a contact custom field when no contact is linked. - Camera, microphone or full screen doesn't work in the page. Add the feature to Allow features.