# Campaign templates and import/export

**URL:** <https://forum.mautic.org/t/campaign-templates-and-import-export/10734>\
**Category:** Ideas and Feature Requests\
**Tags:** completed\
**Created:** [September 1, 2018, 7:48am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734 "2018-09-01T07:48:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 3, 2020, 9:16am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/21 "2020-02-03T09:16:06Z")

</div>

Opened on February 3, 2020, 9:16am UTC



---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [May 7, 2020, 7:51am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/22 "2020-05-07T07:51:33Z")

</div>

Looks like ActiveCampaign just launched a marketplace where you can download ‘recipes’ similar to being able to export and share campaigns and the like:

> **[ActiveCampaign Launches Industry-First Marketplace, Making Automation Recipes...](https://martechseries.com/sales-marketing/customer-experience-management/activecampaign-launches-industry-first-marketplace-making-automation-recipes-accessible-businesses-size/)**
>
> ActiveCampaign, the leader in Customer Experience Automation (CXA), today announced the launch of the ActiveCampaign Marketplace, making Customer Experience Automation more accessible to businesses than ever before. The new Marketplace builds on the...

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [December 9, 2020, 5:03pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/23 "2020-12-09T17:03:31Z")

</div>

Hi folks,

This is one of the Strategic Initiatives for 2020-21 - if you’d like to be involved with this project please do give your availability for the kick-off call on [this Doodle poll](https://doodle.com/poll/qzaex4minigpch7a).

Please also join #i-resource-management on Slack!

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [May 2, 2022, 7:57pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/24 "2022-05-02T19:57:33Z")

</div>

Hi all - any update on this functionality?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [May 3, 2022, 8:27am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/25 "2022-05-03T08:27:05Z")

</div>

Hi @entrepositive it’s something we want to include in our Campaign Library initiative but we currently don’t have any resources available to work on this. Would you like to work on it, or contribute towards the initiative financially so that we can advance on this?

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [May 3, 2022, 8:45pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/26 "2022-05-03T20:45:00Z")

</div>

Hi @silavapi - thanks for the quick response.

This is, like many suggestions here, a great idea. And I’m beginning to understand the inner workings in the Mautic community.

Contributing work…I’m afraid I’d just get in the way there.

Contributing financially…I’m happy to throw into a pot, if there will be others on this as well. I enjoy the idea of a collective initiative and I’ll be a willing team player, to the degree it makes sense.

EP

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [March 10, 2025, 12:48pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/27 "2025-03-10T12:48:25Z")

</div>

If we take a look at n8n, i think this is the single most important feature after a snap install or so which would make a gigantic impact. Sharing templates including all necessary emails, campaign actions and so on would make life for most newbies so much easier and lower the entrance barrier for folks.

I want to set some time aside and start building this. Did someone start looking into that? I am happy for each contact/hint

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [March 10, 2025, 1:11pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/28 "2025-03-10T13:11:31Z")

</div>

Hi @alexhammer this project was funded by NLNet: [https://mautic.org/blog/mautic-campaign-library-strategic-initiative-receives-grant-nlnet-foundation](https://mautic.org/blog/mautic-campaign-library-strategic-initiative-receives-grant-nlnet-foundation)

The project is already in flight, thankfully you can catch up with progress on the Community Portal: [Blog - Campaign Library initiative - Mautic Community Portal](https://community.mautic.org/assemblies/campaign-library/f/96/)

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [March 10, 2025, 1:19pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/29 "2025-03-10T13:19:33Z")

</div>

Hi @silavapi thanks for the quick reply 🙌  
I found the PR in github towards the 7.x branch. Is this the one?

> <https://github.com/mautic/mautic/pull/14504>
>
> | Q | A
> | --------------------------------…------ | ---
> | Bug fix? (use the a.b branch) | 🔴
> | New feature/enhancement? (use the a.x branch) | 🟢
> | Deprecations? | 🔴
> | BC breaks? (use the c.x branch) | 🔴
> | Automated tests included? | 🔴
> 
> \## Description
> 
> This proof of concept (PoC) implements the Campaign Library feature, focusing on the export and import of a single campaign entity without involving the UI. The goal is to demonstrate the core functionality of exporting and importing campaign data in a streamlined manner.
> 
> \---
> \### 📋 Steps to test this PR:
> 
> \#### 1. \*\*Exporting Campaigns\*\*
> Use the following commands to export campaigns:
> 
> \- Export campaign data in JSON format only:
> \`\`\`bash
> ddev exec bin/console mautic:entity:export --entity=campaign --id=1 --json-only
> \`\`\`
> 
> \- Export campaign data as a ZIP file:
> \`\`\`bash
> ddev exec bin/console mautic:entity:export --entity=campaign --id=1 --zip-file
> \`\`\`
> 
> \- Export campaign data as a JSON file:
> \`\`\`bash
> ddev exec bin/console mautic:entity:export --entity=campaign --id=1 --json-file
> \`\`\`
> \- File name: campaign\_data.zip, campaign\_data.json
> 
> The output files will be stored in the Docker container's temporary directory (\`/tmp\`). To access these files on your system, use the following commands to copy them to a local directory:
> 
> \`\`\`bash
> docker cp ddev-mautic-web:/tmp/campaign\_data.zip ../mautic/campaign\_data.zip
> docker cp ddev-mautic-web:/tmp/campaign\_data.json ../mautic/campaign\_data.json
> \`\`\`
> 
> \#### 2. \*\*Importing Campaigns\*\*
> To import the exported campaign data, use the following command:
> 
> \`\`\`bash
> ddev exec bin/console mautic:campaign:import --file=campaign\_data.zip --user=1
> \`\`\`
> 
> \*\*Note:\*\* Before running the import command, the required files must be copied to the Docker container's temporary directory. Use the following commands to copy the files into the container:
> 
> \`\`\`bash
> docker cp ./campaign\_data.zip ddev-mautic-web:/tmp/campaign\_data.zip
> docker cp ./campaign\_data.json ddev-mautic-web:/tmp/campaign\_data.json
> \`\`\`
> 
> \#### 3. \*\*Verification\*\*
> \- Verify that the campaign data is correctly exported by inspecting the JSON and ZIP files in the system directory.
> \- Ensure that the imported campaign data is successfully reflected in Mautic.
> 
> \### 🚀 Expected Results:
> \- Export commands generate the appropriate files in the Docker container's temporary directory.
> \- Import commands successfully import the exported campaign data into the system.
> \- No errors are encountered during the export or import process.
> 
> \### 🚀 Jira Ticket:
> https://mautic.atlassian.net/browse/CL-34

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [March 10, 2025, 2:40pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/30 "2025-03-10T14:40:06Z")

</div>

Yes, it’s staged for release in the 7.0 release.

---

<div class="post-metadata">

**Author:** ![andrewmorgan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrewmorgan/32/13793_2.png) [@andrewmorgan](https://forum.mautic.org/u/andrewmorgan)\
**Post date:** [March 12, 2025, 6:52am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/31 "2025-03-12T06:52:07Z")

</div>

> [@nickw](#):
>
> Comparing Mautic with other well known Sales Funnel software, it seems Mautic is missing the ability to export and import campaigns. I found a discussion on Github about the same [here](https://github.com/mautic/mautic/issues/1623). If Mautic had this feature then campaign templates could be pre-prepared for specific business types or funnel types. Starting with a campaign template might be helpful for some people to get started.

You’re right—Mautic currently lacks a built-in campaign import/export feature, which would be great for reusable templates. Some workarounds involve using the API or manually recreating campaigns. Hopefully, this gets more traction in the community or as a future feature update. Have you checked if any plugins address this?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [March 12, 2025, 7:02am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/32 "2025-03-12T07:02:16Z")

</div>

@andrewmorgan as you can see above, this project is in active development already.

---

<div class="post-metadata">

**Author:** ![dcjarvis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dcjarvis/32/13357_2.png) [@dcjarvis](https://forum.mautic.org/u/dcjarvis)\
**Post date:** [March 27, 2025, 9:53am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/33 "2025-03-27T09:53:19Z")

</div>

HI @alexhammer @andrewmorgan @entrepositive, I’m the project manager for the campaign import and export features. We’re coming close to the end of the development phase now, and looking for people who would be willing to help us test. Would you be interested in that at all? I’d be very grateful for your input! Let me know.  
Thanks  
David

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [April 2, 2025, 8:12pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/34 "2025-04-02T20:12:12Z")

</div>

Hey David,

Absolutely, let me know how I can help. Feel free to DM me as well if that’s better for you.

---

<div class="post-metadata">

**Author:** ![andrew\_c3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrew_c3/32/13547_2.png) [@andrew\_c3](https://forum.mautic.org/u/andrew_c3)\
**Post date:** [May 9, 2025, 8:30am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/35 "2025-05-09T08:30:11Z")

</div>

Hello [dcjarvis](https://forum.mautic.org/u/dcjarvis),

I’m very interested to hear how the campaign import and export feature will work in Mautic 7.

I would really appreciate a brief description on how it will function in reality without beta testing as it might impact work I’m doing on Mautic 6 ?

Will it change the way email themes are currently stored, designed and used to create an email campaign. Or is it an export and import feature of email campaigns already sent which are stored in the database ? Would you please clarify the functionality.

Thanks.

---

<div class="post-metadata">

**Author:** ![dcjarvis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dcjarvis/32/13357_2.png) [@dcjarvis](https://forum.mautic.org/u/dcjarvis)\
**Post date:** [May 9, 2025, 8:55am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/36 "2025-05-09T08:55:19Z")

</div>

Hi there, I don’t think it will affect what you’re doing… basically if you export a campaign that requires an email theme to deliver an email that’s a part of the campaign, the relevant data will be part of the export, whether that’s as structured JSON data or as associated assets, themes and dynamic content. All of this will be included in the export, which is delivered to users as a ZIP file. Then on import the same zip format is used to import the data to the correct places in Mautic so that the campaign can function. Does that make sense? Happy to answer any further questions!  
Thanks,  
David

---

<div class="post-metadata">

**Author:** ![andrew\_c3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrew_c3/32/13547_2.png) [@andrew\_c3](https://forum.mautic.org/u/andrew_c3)\
**Post date:** [May 9, 2025, 9:56am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/37 "2025-05-09T09:56:24Z")

</div>

Hello [dcjarvis](https://forum.mautic.org/u/dcjarvis),

Can I take it as read that the email themes i.e. twig file design and structure is not going to change anytime soon ? And you are exporting and importing email campaigns in there current form as per Mautic 6.x ? Is my thinking correct ?

In our case creating a custom theme and then modifying it with the grapesjs builder which is stored in the database does not give us enough design flexibility. And to re-use the design you have to clone the email campaign and make modifications with the grapesjs builder with the theme stored in the database. That process does not work for us.

Therefore in our case I plan to create a separate custom theme for every campaign and not use grapesjs builder for modifications. The custom theme will be ready to go. Yes I know that will create lots of custom themes and thats ok for us.

Outside of Mautic I plan to code up a theme generator app which will be used to create custom themes and I want to make sure themes are not changing anytime soon or it will complicate our design goals ?

I hope that is compatible with your export and import feature ?

Thanks.

---

<div class="post-metadata">

**Author:** ![dcjarvis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dcjarvis/32/13357_2.png) [@dcjarvis](https://forum.mautic.org/u/dcjarvis)\
**Post date:** [May 12, 2025, 7:33am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/38 "2025-05-12T07:33:55Z")

</div>

Hi @andrew_c3  
I can’t really answer your question in total as I don;t know, but I know that the twig file structure is not being affected by what we are doing with campaign export and import. From how your describe your approach I don’t think there will be an impact. Campaign export just identifies any entities that are required for the campaign to function and then exports the data for each of those dependencies into a JSON based file. We also identify if any external plugins are used - on import we check for those and get the user to install them first before the import can work. So if you are using a new builder app/theme generator, then I assume that will be registered as a plugin within Mautic.

If you’d like more insight you can download the current code from this PR: [Campaign import/export process by levente999 · Pull Request #14504 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/14504)

Thanks

---

<div class="post-metadata">

**Author:** ![zaharovrd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zaharovrd/32/7799_2.png) [@zaharovrd](https://forum.mautic.org/u/zaharovrd)\
**Post date:** [May 17, 2025, 7:46pm UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/39 "2025-05-17T19:46:34Z")

</div>

Hi, i can test it! 🥳

---

<div class="post-metadata">

**Author:** ![dcjarvis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dcjarvis/32/13357_2.png) [@dcjarvis](https://forum.mautic.org/u/dcjarvis)\
**Post date:** [May 19, 2025, 6:59am UTC](https://forum.mautic.org/t/campaign-templates-and-import-export/10734/40 "2025-05-19T06:59:59Z")

</div>

HI there, thanks very much for volunteering! I will PM you with some details and instructions! Thanks, David

[Previous page](https://forum.mautic.org/t/campaign-templates-and-import-export/10734.md?page=1)

[Next page](https://forum.mautic.org/t/campaign-templates-and-import-export/10734.md?page=3)
