DevPortalPagoPA




Table of contents

#️⃣ Guide to the Markdown

IO allows the content of messages and service boards to be enriched with formatted text, links and other active elements in order to offer the citizen a more complete and clearer experience.
To this end, the IO app supports a variant of the popular Markdown format. You can find all the information for its correct use here.

Text Formatting

With the IO app you can enrich the text of communications by highlighting parts in bold and italics, creating bullet-pointed lists and separating it with headings.
FormattingSyntaxResult
boldText in **bold**
Text in __bold__
An image
italics
Text in *italics*
Text in_italics_
An image
bold/italicsText in ***bold/italics***
An image
fixed spacing
(note the backtick!)
`Fixed-spacing text`
An image
bullet-point lists* First element
* Second element
* Indented element
An image
headings# Heading 1
## Heading 2
### Heading 3
An image

Start a new line

The Markdown of the IO app supports two ways of “starting a new line”:
  1. a single \n preceded by two spaces (" ") allows you to simply start a new line with a line break
  2. a double "\n" allows you to start a new line by creating a new paragraph (with spacing from the previous one)
The Markdown of the IO app supports standard notation for links: [testo](link). For instance, the Markdown "Clicca [qui](https://io.italia.it) per andare sul sito di IO" will produce the following result:\
An image

Call to Action Buttons (CTA)

The IO app supports the optional addition of up to two buttons at the bottom of the message, which can be associated with customized links.
In order to present the buttons (CTA) within a message, you must incorporate a front-matter with the following structure:
1---
2it:
3    cta_1: 
4        text: "Scrivi"
5        action: "iohandledlink://mailto:nome.cognome@email.com"
6    cta_2: 
7        text: "IO Italia"
8        action: "iohandledlink://https://io.italia.it/"
9en:
10    cta_1: 
11        text: "Write email"
12        action: "iohandledlink://mailto:nome.cognome@email.com"
13    cta_2: 
14        text: "IO Italia site"
15        action: "iohandledlink://https://io.italia.it/"
16---
17
18# Il contenuto del messaggio inizia qui
19
The front-matter is a structured section of metadata placed at the beginning of the content; its placement is crucial as it precedes the main body of the content and it is delimited by the --- separators.
The system allows you to define a maximum of two languages used for translations, i.e. it and en. For each language, you can include a maximum of two CTAs, identified respectively as cta_1 which is mandatory and cta_2 which is optional.
Two properties are defined for each CTA:
  1. text representing the text that will be displayed in the CTA
  2. action which represents the action that will be triggered on tapping the CTA

Possible actions

For the action, protocols are defined for the creation of routes within the IO app and the interaction with certain features of the operating system of the device in use.
To obtain a CTA with a link to a site external to IO, as in the case of a normal link, you must use the protocol iohandledlink:// followed by the full Internet address of the destination site, e.g. iohandledlink://https://io.italia.it

Special actions

In order to enrich your messages while facilitating their use by the recipient, IO supports the creation of CTAs capable of
  1. initiating the creation of an SMS to a telephone number: in this case, you must use the syntax iohandledlink://sms:+393211234567 where "+393211234567" is the recipient’s number
  2. initiating the creation of an email to an email address: in this case, you must use the syntax iohandledlink://mailto:nome.cognome@email.com where "name.surname@email.com" is the destination email address
  3. initiating a call to a telephone number: in this case, you must use the syntax iohandledlink://tel:+39061234567 where "+39061234567" is the telephone number to be called

Haven't completed onboarding yet and need help?

Write an email describing your problem or question to the address areariservata@assistenza.pagopa.it.

Need help with APIs and Integration?

Write an email describing your problem or question to the address:

io-service-management@pagopa.it

Tell us what you think

To report problems or give feedback, leave a comment in the GitHub space of the IO app