Ouvrir dans Magpie

In the editor, More → Import JSON… has two choices above Copy the prompt:

  • Change what I have copies a prompt that ends with this deck as it is now, every slide and everything on it. Paste it into an AI chat you use, say what to change ("make every background a dark blue to purple gradient"), and paste the deck it sends back into the box.
  • Start fresh copies the format in Build a presentation by pasting JSON, for a new set of slides.

With Change what I have, Keep every word as it is is on at first. The prompt asks the chat not to change any text, and Magpie checks what comes back: any text, speaker notes or slide name it changed is put back as it was. If a text is missing or a new one appears, nothing is loaded and the message names the slide, so you can ask the chat to put it back, or turn Keep every word as it is off.

Replace the slides puts the pasted deck into the editor. The message after it says which slides changed and offers Undo, and the editor's Undo works too. The draft saves as any change does; a published deck keeps showing its published version until you publish again.

The deck

The deck is the one Magpie stores, so it describes every slide exactly: each text, shape, line and image with its position and look. Send it back whole, with each id as it was. A slide or element you add needs no id; Magpie gives it one.

{
  "theme": { "background": "#ffffff", "text": "#1d1d1b", "accent": "#d04838" },
  "slides": [
    {
      "id": "p3f9a1c2b7d",
      "title": "",
      "hidden": false,
      "background": "#1e2a78",
      "backgroundGradient": { "type": "linear", "angle": 135, "stops": [{ "color": "#1e2a78", "position": 0 }, { "color": "#7b2ff7", "position": 1 }] },
      "notes": "",
      "elements": [
        { "id": "p8c2e0d41aa", "type": "text", "x": 150, "y": 280, "w": 1300, "h": 150, "z": 1, "text": "Q3 review", "fontSize": 96, "weight": "bold", "align": "left", "color": "#ffffff", "style": "title" }
      ]
    }
  ]
}

The theme

Field What it is
background The colour of a slide that sets none of its own.
backgroundGradient Optional. A gradient behind every slide that sets no background of its own.
text The colour of text that sets none.
accent The colour of shapes and lines that set none.
headingFont, bodyFont Optional. A font from Fonts, for text set in the title, heading or subheading style, and for the rest.
palette Optional. Up to 8 colours offered in the editor's colour controls.

Slides

Field What it is
id Keep it as it is.
title The slide's name in the list of slides, when it has no text to name it.
hidden true leaves the slide out when presenting.
background The slide's colour. Keep a plain colour here even with a gradient: it is drawn where a gradient cannot be.
backgroundGradient Optional. A gradient over the whole slide. Leave it out for a plain colour.
notes Speaker notes, up to 10,000 characters. Never shown to an audience.
elements What is on the slide, up to 100.

A deck has up to 200 slides.

Elements

A slide is 1,600 wide and 900 high, measured from its top left corner. Every element has:

Field What it is
id Keep it as it is.
type text, shape, line or image.
x, y, w, h Its position and size. A line runs across the middle of its box from left to right; rotation turns it.
z Its order: a higher number is drawn over a lower one.
opacity Optional, from 0 to 1.
rotation Optional, in degrees clockwise.

A text has text (newlines are kept), fontSize from 10 to 400, weight ("normal", "bold", or 100 to 900), align (left, center or right) and color. Optional: font (from Fonts), italic, uppercase, letterSpacing in ems from -0.2 to 1, lineHeight from 0.8 to 3, valign (middle or bottom), and style (title, heading, subheading, body or caption), which makes the text follow the theme's fonts.

A shape has shape (rectangle, rounded, ellipse, triangle, diamond, hexagon, star or arrow), fill (a colour or "none"), stroke and strokeWidth up to 40. Optional: fillGradient (a gradient) and radius for a rectangle's corners.

A line has color, strokeWidth and arrow (true or false), and optionally dash (dashed or dotted).

An image has imageUuid, alt and fit (cover or contain). Keep imageUuid as it is: it names a picture in your images, and a chat cannot add a new one.

Colours are hex colours such as "#d04838".

Gradients

A slide's background, the theme's background and a shape's fill can be a gradient:

{ "type": "linear", "angle": 135, "stops": [{ "color": "#ff5f6d", "position": 0 }, { "color": "#ffc371", "position": 1 }] }
Field What it is
type linear or radial.
angle For linear, in degrees: 0 runs from the bottom up, 90 from left to right, 180 from the top down.
position For radial, where it spreads from: center, top, bottom, left, right, top-left, top-right, bottom-left or bottom-right.
stops From 2 to 5 colours in order, each { "color", "position" } with a position from 0 to 1.

Fonts

A font is written by its key: inter, roboto, open-sans, lato, montserrat, poppins, dm-sans, work-sans, nunito, space-grotesk, ibm-plex-sans, source-sans-3, oswald, raleway, playfair-display, merriweather, lora, source-serif-4, ibm-plex-mono, jetbrains-mono, schibsted-grotesk, arial, helvetica, georgia, times-new-roman or courier-new.

If a pasted deck is refused for a reason you can't work out, Contacter l’assistance.

Demander à l’assistance Magpie

Envoyez à l’équipe Magpie une question sur tout ce que cet article n’explique pas.