Salebot.ai
  • About
  • The basics: How to use Salebot.ai
    • The basics of using the editing software
    • Creating blocks and the types of them
    • Arrows (connections)
    • Quick actions
    • Buttons
    • Condition and Matching selection
    • Links to messengers
    • Blocks "not State"
    • The first message
    • Description of the fields in the Editor
    • How to make the bot not interrupt the dialogue with the client
    • Sending attachments. Tracking links.
    • Getting files from the user
    • Editing text message
    • Random answers in a bot
    • Built-in variables
    • Reservation and recovery
    • Free Videos to master Salebot
  • Administration
    • Custom Roles
    • Reservation and recovery
  • Messengers and chats
    • WhatsApp
    • Whatsapp Business API
    • Telegram
    • Viber
    • Facebook Messenger
    • Official Instagram
    • Online-chat on a site
    • Merging contacts from different messengers
  • Variables
    • Variables
    • Calculator
    • API in Calculator
    • Variable comparison
    • Working with Dates and Time
    • Working with Arrays and Dictionaries
    • List of Useful Regular Expressions
    • How to use variables
  • CRM
    • AmoCRM
    • Bitrix24
  • Working with API
    • The editing software's API
    • Integration with third-party APIs
  • Integrations
    • Payment systems
      • Capusta.space
      • Coinpayments
      • INXY Payments
      • Paypal
      • Payeer.trade
      • Paynow
      • Stripe
      • Telegram
      • Fondy
      • Wayforpay
      • WalletOne
    • InfoBusiness
      • MyOwnConference
      • WebinarGeek
    • Analytics
      • Roistat
      • Facebook Pixel
      • Google Analytics
    • Google Sheets
    • Google Tables
    • Google Calendar
    • Apix-Drive
    • SMS services
    • Sendpulse
    • QuizGO
    • Tilda
    • Linkrr
    • Vakas-Tools
  • Mailings
    • Pipelines
    • Manual mailings
    • Mailing list
    • Stop mailing
    • How to filter clients for mailing
    • Transferring the client base. Uploading Whatsapp numbers
  • To partners
    • How to transfer the project to the customer
  • How to...
    • FAQ
    • ...Create a simple chatbot
    • ...Transfer UTM-labels
    • ...Create a referral program
    • ...Create temporarily available content
    • ...Connect analytics counters and configuring conversions through GTM
    • ...Move clients to another block
    • ...Create personalized images
    • ...Create a menu in Telegram
    • ...Connect Telegram-pay
  • Payment Services
    • Page 1
  • Mini-landing
  • Special capabilities
    • Python programming
    • Generating a QR-code
    • Generating a barcode
    • Barcode recognition on an image
    • Using Google Sheets for mailings
    • Sending requests to messengers and email
    • Working with promo codes
  • Our services
    • Pricing
    • Training courses
  • Group 1
Powered by GitBook
On this page
  • How to configure Sendpulse API
  • How to set up sending emails from the editor
  • How to add an email to the address book
  • How to send an SMS
  1. Integrations

Sendpulse

You can work on Sendpulse to send emails from your phone number.

PreviousSMS servicesNextQuizGO

Last updated 2 years ago

How to configure Sendpulse API

There is a free subscription plan on Sendpulse that allows you to send one-off emails.

To use Sendpulse API you’ll need ID, Secret and you’ll also need to register the sender’s email.

You can send emails only from the email address you specified during the sign up process.

You can register the email for sending in the SMPT section

How to set up sending emails from the editor

To send an email, you need to paste this into the Calculator tab:

sendpulse_email(api_id, api_secret, from_email, to_email, subject, message, from_name)

where

api_id — API id from Sendpulse api_secret — Secret from Sendpulse from_email — sender’s email address to_email — recipient’s email address subject — the email’s subject message — the email’s body (the message itself) from_name — sender’s name

To send a template:

First, set the value to the variable template, it’s data on the needed template:

template = { "id": "Template number", "variables": { "variable name": "variable value", "variable name": "variable value" }}

Then call the function

sendpulse_email_template(api_id, api_secret, from_email, to_email, subject, template)

where

api_id — API id from Sendpulse api_secret — Secret from Sendpulse from_email — sender’s email address to_email — recipient’s email address subject — the email’s subject template — the value of the variable that we set above

For ease let’s look into the example of a bot that asks to whom, with which subject and body the email should be sent.

Let’s save the api_id and api_secret values into the variables. To do this, go to Salebot’s project settings.

Then create a scheme that collects the data.

Now let’s test it:

How to add an email to the address book

To add an email address to the address book, use this method:

sendpulse_add_to_addressbook(api_id, api_secret, book_id, email, variables=None)

where

api_id — API id from Sendpulse api_secret — Secret from Sendpulse book_id — id of the address book email — the email you need to add variables — (optional) an array of variables массив переменных. If you need to set it, it needs to be of this format: {“variable_name”:”variable_value”}

How to send an SMS

To send an SMS paste this function into the Calculator tab:

sendpulse_sms(api_id, api_secret, sender, phone, text, transliterate=0, route=None)

where

api_id — API id from Sendpulse api_secret — Secret from Sendpulse sender — sender’s name (under 11 Latin symbols, you can use numbers) phone — the phone number of the recipient text — the message text, you need to place it in brackets if you’re not using a variable transliterate — transliterate = 1, without transliteration = 0 route — the list of channels for sending in countries, you can set it as None

How to configure Sendpulse API
How to set up sending emails from the editor
How to add an email to the address book
How to send an SMS