Bigin send mail API not working for me

:bullseye: What is your goal?

Send email using a Bigin api call

:thinking: What is the problem & what have you tried?

first time trying to use the Bigin api call to send emails as realted to a specific deal. I’m getting an ok response code 200 but no email and record of it in Bigin even 30 minutes later.

Here’s what it looks like in make.com

I’ve tried using this url:
/deals/7116261000000688091/actions/send_mail

as well as changing /deals to /Pipelines but still no email sent.

Here’s the body I copy and pasted from Bigin’s website, only changing the to, from and reply to field.

I’m assuming I’ve either a stupid syntax problem or I just don’t know how to use the api call.
Help would be appreciated.

Thanks community

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Make the API call on this specific URL or path.

/v2/Pipelines/{deal_id}/actions/send_mail

Here’s the Body content. (Add your own values)

{
  "data": [
    {
      "from": { "user_name": "...", "email": "..." },
      "to":   [ { "user_name": "...", "email": "..." } ],
      "subject": "Your subject",
      "content": "Your body text",
      "mail_format": "html"
    }
  ]
}

Note: Please make sure the method is “POST” and the configured addresses (email) are from Bigin (Settings > Email > From addresses).

Please also check the response body and post it here. Let me know how it goes!

Thanks, working great!

I had a typo (of course) missing the /v2/ in the url beginning.

Also, my scope was incorrect. I changed it to ZohoBigin.send_mail.all.CREATE and all’s working now.

Thanks again @Karmic

@Gill_Dolan You’re welcome! Glad to hear it’s working now.

I’m curious @Karmic, how would you use an email template in this scenario?

@Gill_Dolan You can build the email template on Bigin. Get the template ID. In your send_email, add the template_id and map the record data. Bigin will handle the rest of it.

You can also set variables before the HTTP Module. Store variables. Map the fields. Send it.

@Karmic Tried finding the email template id in Bigin but whatever I try I can’t find it. If there’s a way to do it I’d be happy to learn how to.

Add a Tool Module (Set multiple variables) before your HTTP Module. Input your email body and map in the fields you need from the previous module.

If you want multiple templates later, you can move the subject and email body into Google Sheet / Airtable / Data Store with a key code.

Search the row using the key code, then map fields into it and send via send_mail.

Note: The other workaround is to create the email template in Bigin and trigger a workflow.

Let me know how it goes!

I think templates should be the way I do this but for now I created it all with JSON and all’s fine.

Thanks!

Let me know if you’ll have any other problems with it!

Thanks, I think I’ll be tinkering with email templates today.

I can’t find Bigin’s template ids. Any way I can use gmail templates from within Bigin?

There is no way today to select a Gmail template directly in the Bigin UI or Bigin workflows.

If you want templates when sending mail from inside Bigin, you need to use Bigin email templates, not Gmail templates.

Settings > Channels > Email > Templates

If you really want to reuse your Gmail templates, you would need to send the email outside Bigin.

Triggers from a Bigin event (deal/contact updated) > Search and pull a Gmail draft body > Sends the email via Gmail with that body.

Figured out a way to find email template id’s in Bigin!

I connected Bigin to Zoho Flow and created a test automation for sending emails. As part of the workflow Zoho Flow asks what template to use and in the dropdown it shows both the name of the email template and it’s template id.

Granted, I need to manually write down the long id because there’s no way to copy it, but at least I found it.

Now to test using the Bigin template with make.com