Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Course: setup in Brevo (SendinBlue) #86

Closed
24 tasks done
theo-cox opened this issue May 5, 2023 · 6 comments
Closed
24 tasks done

Email Course: setup in Brevo (SendinBlue) #86

theo-cox opened this issue May 5, 2023 · 6 comments
Assignees

Comments

@theo-cox
Copy link
Contributor

theo-cox commented May 5, 2023

Work out - by doing it - how to setup a simple email course in Brevo.

  • Started when you sign up e.g. with a form
  • Sent a first email
  • Sent the next one a day later (or BONUS early at request)
  • ...

Can start with a trial run by creating the course from e.g. two input emails. ie. given two emails in markdown in a gist or github repo have a little course

Next part would be documenting or doing the setup for the full course.

Job Stories

When i have a course drafted i want to copy it over as quickly as possible

  • draft in gdocs (or markdown)
  • want to add standard footer (e.g. re unsubcribe, other materilas etc)

When i revise my course i want to update my existing emails as easily as possible

  • implies that doing first job story kind of again easily is important

Acceptance

Tryout

  • Create two simple emails (can come from our course or otherwise) ✅2023-05-17 see the repo
  • "course" (automation) created with templates based on those emails
    • At least email template creation / updating should be automated

Tooling and docs

  • Script or docs for how to create the course (can be very short if obvious in brevo) 🚧2023-05-17 see automation how to below
  • Have a script for updating the course content
  • Have docs on how to update content

Tasks

Test email course

  • Is the email course in our public repo? ✅2023-05-16 Not for now
  • Create a private git repo ✅2023-05-16 using the brevo-utils repo
  • Export some of text to markdown and add to repo (2 files)
  • Create the course i.e. the automation ✅ 2023-05-18
  • Script for adding / updating the templates ** ✅ 2023-05-18**
    • 3 files at diginomic-101/ ...day-0.md ...day-1.md ...day-2.md
    • add necessary frontmatter for template title, subject, etc.
    • day-0.md as first welcome email sent immediately after signup

Notes

Email creation howto / notes

Means you need to use the inbuilt editor and do things internally. Quickstart guide to the editor: https://help.brevo.com/hc/en-us/articles/360016831820-Drag-Drop-Editor-New-design-Part-1-Editor-Overview-

Alternatives

Automation Howto

For the Diginomics 101 course we want to send 5 emails over 5 days, triggered when people sign up.

This makes use of Brevo's automation features: https://www.sendinblue.com/blog/email-automation/#what-are-automated-emails

The process is fairly simple. Login and navigate to the automation section on the side menu and create a new automation. The key things are:

An entry point: this is the trigger that starts the email.

image

We'll want to select the diginomics 1010 signup form:
image

Workflow steps: these are the ordered steps triggered by the entry condition. They can be chained together using the little "+" icon

image

We basically just need to automate sending an email and a wait condition equaling 1 day.

Each new email will require a new template:

image

And the wait can be set under "conditions"

image

Final thing is to test the workflow - click the little the little conical flask icon (top right of screeenshot) and enter test email

image

You're then good to go!

@theo-cox
Copy link
Contributor Author

theo-cox commented May 5, 2023

@rufuspollock @khalilcodes see here for automation notes

@rufuspollock rufuspollock changed the title Brevo (SendinBlue) Automation Email Course: Howto do doi Brevo (SendinBlue) Automation May 5, 2023
@rufuspollock rufuspollock changed the title Email Course: Howto do doi Brevo (SendinBlue) Automation Email Course: Howto do setup in Brevo (SendinBlue) May 5, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Backlog (All) May 10, 2023
@rufuspollock
Copy link
Contributor

rufuspollock commented May 10, 2023

@khalilcodes regarding creating email templates we can't use markdown directly in brevo it seems. However, maybe we can get around this via api using html - see https://developers.brevo.com/reference/createsmtptemplate and excerpt below.

Suggestion: could you spend 30-1h seeing if you can:

  • create/update an email template with html via the API
  • 🏆 markdown => html => email
  • 🏆 Updating an email template
const SibApiV3Sdk = require('sib-api-v3-sdk');
let defaultClient = SibApiV3Sdk.ApiClient.instance;

let apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';

let apiInstance = new SibApiV3Sdk.TransactionalEmailsApi();

let smtpTemplate = new SibApiV3Sdk.CreateSmtpTemplate();

smtpTemplate.sender = {"name":"John Doe","email":"[email protected]"};
smtpTemplate.templateName = "Example Template";
smtpTemplate.htmlContent = "<html><body><h1>This is my first transactional email</h1></body></html>";
smtpTemplate.subject = "New Subject";
smtpTemplate.replyTo = "[email protected]";
smtpTemplate.toField = "[email protected]";
smtpTemplate.isActive = true;
smtpTemplate.attachmentUrl = "https://example.net/upload-file";

apiInstance.createSmtpTemplate(smtpTemplate).then(function(data) {
  console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, function(error) {
  console.error(error);
});

@khalilcodes
Copy link
Contributor

@rufuspollock rufuspollock mentioned this issue May 17, 2023
70 tasks
@khalilcodes
Copy link
Contributor

@rufuspollock updated tasks for script and automation. Basically the steps are creating templates (for each days) and then adding those in the automation workflow.

@rufuspollock
Copy link
Contributor

rufuspollock commented May 18, 2023

@khalilcodes great. and what was the bug with the template creation in the end?

Also can you update acceptance?

@rufuspollock rufuspollock changed the title Email Course: Howto do setup in Brevo (SendinBlue) Email Course: setup in Brevo (SendinBlue) May 29, 2023
@rufuspollock
Copy link
Contributor

FIXED. Have a working script, follow up more ambitious workflow in life-itself/brevo-utils#1

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Backlog (All) May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants