<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 46elks on Medium]]></title>
        <description><![CDATA[Stories by 46elks on Medium]]></description>
        <link>https://medium.com/@46elks?source=rss-486cb68246a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UAFjXDok_oixKz9gwenzhg.png</url>
            <title>Stories by 46elks on Medium</title>
            <link>https://medium.com/@46elks?source=rss-486cb68246a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:37:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@46elks/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building your own A.I. Chatbot]]></title>
            <link>https://46elks.medium.com/building-your-own-a-i-chatbot-34a07135c41f?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a07135c41f</guid>
            <category><![CDATA[chatbots-for-business]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[chatbot-development]]></category>
            <category><![CDATA[virtual-number]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Wed, 11 Oct 2023 08:45:03 GMT</pubDate>
            <atom:updated>2023-10-11T08:45:03.000Z</atom:updated>
            <content:encoded><![CDATA[<p>Today we are going to be creating an A.I.-powered chatbot that you can use for numerous purposes</p><p>You can implement it on your website as a virtual assistant for your product/service or you can implement it on your business Whatsapp for Airbnb business (+ any other services that are in need of guidance).</p><p>Tools we are going to be using are:</p><ul><li><a href="https://botpress.com/">Botpress</a> (Free up to 1K monthly messages — should be enough for most small/medium businesses)</li><li><a href="https://www.stack-ai.com/">Stack AI </a>(Free up to 100 runs per month — we can work without this one if paid structure for your business is not an option)</li><li><a href="https://46elks.com/register">46elks</a> (We will need the phone number to connect to our Whatsapp business account)</li><li><a href="https://developers.facebook.com/">Meta Developer</a> (Whatsapp integration)</li><li><a href="https://business.facebook.com/">Meta Business</a> (Permanent access token)</li></ul><p>Here is the final product we will get: <a href="https://mediafiles.botpress.cloud/0a344e20-7428-49d3-bb00-4c6db075b649/webchat/bot.html">A.I. Chatbot</a> (this one is a bit modified and few questions added but with same principles used in this tutorial)</p><p>Let’s start.</p><p><strong>Setting up the bot</strong></p><p>First of all, navigate to the <a href="https://botpress.com/">Botpress</a> site and create a free account.</p><p>You should have something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zDbgxY1VHEx-DF4I" /></figure><p>Click on the “Create chatbot” on the left-hand side of the navigation.</p><p>Once that is done, click edit and go ahead and choose Start from the template option. (Choose “Basic (empty)”)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dJd9ztXwmI9SUist" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KWddsHVsiKUknfbu" /></figure><p>For this example, I am going to be creating a “Talk to the God” chat since this will allow me to demonstrate all of the functions you need to create a successful A.I. Chatbot.</p><p><strong>Understanding the node structure</strong></p><p>The whole principle of Botpress works around nodes and nodes are always read from top to bottom.</p><p>What does that mean?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4FaIicEuedQPjjf_" /></figure><p>In the picture above you can see that the first node is “Start” and is directed toward the next node called “Hello” (btw., always name your nodes!).</p><p>In the node “Hello” information is read from top to bottom. So if the top event (action) is true it continues to the next event and so on.</p><p>In this tutorial, we are going to start off with a basic node structure where the user picks an option and is directed to the node based on the choice. At one point we are going to be using a Knowledge base and A.I. to power up this system and gain more leverage in response.</p><p><strong>Building the Bot</strong></p><p>Go ahead and right-click on empty space and choose “Standard node”.</p><p>Connect “Start” and your first node by dragging from one circle to the other at the end and beginning of the node.</p><p>On the left-hand side, you can hover over cards to find the ones we will be using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RpWPCXvJTVAiaXhu" /></figure><p>Choose “Text” and drag and drop it to the new node you created (and labeled!).</p><p>Add the text you want your bot to start with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xHBsy8adQw7xq3q3" /></figure><p>Add one more of those “Text” cards if you want to send multiple messages.</p><p>Next, we are going to be using capture cards. That means information that is chosen (or written) is stored in our database to be used for future references.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*1c5_4Cx9C1qEjlnW" /></figure><p>Choose a “Single Choice” capture card and add choices to your bot.</p><p>In this example, we are going to go with 2 choices only (but this can be more complex, based on your need).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*Zc0z4OHJVIZEIXcG" /></figure><p>By choosing “Advanced Configuration” go with the “Choice” option.</p><p>Add 2 items, in this example “To know” and “Not to know”.</p><p>The most important thing here is to create a variable in which we store the info.</p><p>Select/Create a variable and enter “choices”. Hit create “choices” and the variable “workflow.choices” will be created. (note that the name depends on you, it does not matter as long as you know what you are writing)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*YjaWxFCnm14dsuRB" /></figure><p>From two choices on our first node you have 2 circles which you can pull to the side and a new node will be created.</p><p>We won’t be using those because with more complex situations we would have a mess of nodes and it would be hard to navigate.</p><p>I am going to show you how to use simple .js code which you can use to answer multiple choices in one node.</p><p>Navigate to the cards section and choose “Flow logic” -&gt; Expression.</p><p>As we mentioned before nodes are read from top to bottom. So if choices are not leading to any node it will skip that and lead to the Expression.</p><p>The Expression is configured automatically and from there, you can just pull the little circle to create a single node (rather than 2 nodes as we would need before).</p><p>In the cards section select “Execute code” and add it to the new node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xqMbzWK1gAozy3Wb" /></figure><p>This is the piece of code we need to execute the answer based on the choice the user made.</p><pre>// Check if the choices variable is &#39;To know&#39;<br>if (workflow.choices === &#39;To know&#39;) {<br> // Create a new message in the workflow with the given text<br> workflow.nextMsg += &#39;Life and Death are same motion.&#39;<br>}<br>// Check if the choices variable is &#39;Not to know&#39;<br>else if (workflow.choices === &#39;Not to know&#39;) {<br> // Create a new message in the workflow with the given text<br> workflow.nextMsg += &#39;To Die is to Live!&#39;<br>}// Check if the choices variable is ‘To know’</pre><p>So what’s going on in the code?</p><p>We are using if/else if command to call the variable we created (workflow.choices) to generate an appropriate response.</p><p>If the customer chooses “To know” we are going to display one type of msg, if the customer chooses “Not to know” we are going to be displaying different msg.</p><p>One more thing, as you see we are using one more variable (workflow.nextMsg). This variable will help us to send specific msg to the customer based on the choice they made.</p><p>So go ahead and create a new variable on the left-hand side of the menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*YAYyaiFuenMNpT4t" /></figure><p>Name that variable @workflow.nextMsg.</p><p>Next, add a normal “Text” card but this time write @nextMsg to the field. This simply means the variable from the code will be executed and sent to the customer.</p><p>Through this, we saved time and space (and our nerves) in trying to figure out which node is what 😀.</p><p>We are going to finish this node with one more Expression node and redirect that node to the new standard node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LSwTsGypu7aJW69E" /></figure><p><strong>Adding A.I. to the workflow</strong></p><p>Okay, you should have a basic idea of how this works.</p><p>In this section, I am going to show you how to create a Knowledge base, and if no info is found in the Knowledge base we are going to be using StackAI to pull up ChatGPT and answer the question in a specific format.</p><p>Select the AInode we just created and enable the Knowledge base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jxh78mJbiL8KChZ_" /></figure><p>You should have a book icon on that node if you did everything correctly.</p><p>On the left-hand side of the menu, you have an option to add your own Knowledge base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*FEiioqK1J3kfUneK" /></figure><p>This can be a website of your business (or any other website) or it can be a .doc, .pdf, or .excel file with all the information you usually provide to the customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*Ioh9JDinhiX6lfZo" /></figure><p>For this one, I went with “Text Document” to demonstrate in simple terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tnKWFWDcomEYcIWP" /></figure><p>But let’s start the node workflow with a “Text” card so we can let our customers know that they can ask anything.</p><p>Also, in the same way as before, we need to store that input info into a variable so our friend ChatGPT knows what gets to be answered.</p><p>Go ahead and add the capture card “Raw input” + create a new variable workflow.question.</p><p>This means our customers will enter anything they want and we will store that info in our database and feed it to the Knowledge base. If we don’t get the answer we will point that same question to StackAI and get the answer from ChatGPT.</p><p>In addition to this, we are going to create a loop where after our customers get the answer they will be asked if they want to continue to ask more questions.</p><p>Let’s do the node setup first and we can explain everything when we have that ready.</p><p>The knowledge base node should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/0*BYOkg6aorjBfTpuA" /></figure><p>So we have a “Text” card and a “Raw input” card + we need to add two Expression cards.</p><p>If no answer is found in the knowledge base we created it will send our customer to the Stack AI node but if it finds the answer it will skip “No answer from knowledge base” and go to always and redirect the customer to a new node where they will be asked if they want to continue questions.</p><p>For the Expression card (no answer from the knowledge base) this is the condition you need to enter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*PAdPaVIexAm4te_P" /></figure><p>As for the two extra nodes we created this is how they should look like.</p><p><strong>Continue QA:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/0*MZAZ1ZeULh-O5wXT" /></figure><p>It is a simple Yes/No single choice option where Yes leads back to the Knowledge base node and No leads to the end of the Chatbot.</p><p>Stack AI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*zAZLN_Rf3FxhBvdK" /></figure><p>Above we can see what the StackAI node structure should look like.</p><p>We have “Execute code” which will connect our Stack AI account with Botpress.</p><p>Then the variable (response from ChatGPT) and at the end “Expression” leading to the “Continue QA” node.</p><p>Before we start with Stack AI just go ahead and create a variable called apiReposne. We will need this to fetch the answer from ChatGPT and send it to our Botpress through the same workflow as before @workflow.apiReposne</p><p>Here is the piece of code we are going to be using to execute this task.</p><pre>// Add your stack AI endpoint URL in place of “YOUR_STACK_AI_ENDPOINT_URL”<br>const endpoint = &quot;https://www.stack-inference.com/run_deployed_flow?flow_id=64bfd17326bcb58340d45190&amp;org=1838c13c-1e62-4b05-b34d-cbf93473423c&quot;<br>// Add your stack AI API key in place of &quot;YOUR_API_KEY_HERE&quot;<br>const headers = {<br>Authorization: `Bearer YOUR_API_KEY_HERE`,<br>&quot;Content-Type&quot;: &quot;application/json&quot;<br>}<br>const data = {<br>&quot;in-0&quot;: workflow.question,<br>}<br>try {<br>const response = await axios.post(endpoint, data, { headers })<br>workflow.apiResponse = response.data[&quot;out-0&quot;]<br>} catch (error) {<br>throw new Error(`stack-error: ${error}`)<br>}</pre><p>So what does this mean?</p><p>We are pulling up our Stack AI flow which we created through the link and connecting into Botpress with API.</p><p>“In-0” is our input variable from Botpress (workflow.question) and we are collecting the response into the variable called apiResponse.</p><p>Cool right?</p><p>Let’s jump to the Stack AI and finish the setup there.</p><p>After creating the account go ahead and select New Project and select Document Q&amp;A.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xwGIsfhh0FZQ4f3W" /></figure><p>This will create a workflow for us.</p><p>Since this will be automatically created for you, here is the breakdown of the flow so you understand what is what.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0sDZbjoaVB2_QuKT" /></figure><p>In-0 is the variable that will come from Botpress and will be sent to ChatGPT.</p><p>I used gpt 3.5 turbo since it consumes a lot fewer tokens, meaning more questions for free!</p><p>Also, I have provided a simple prompt for ChatGPT so it knows how to act.</p><p>Here is the prompt I used:</p><blockquote>You are the wise sage. Whatever you are asked, reply in 7 words maximum. Be wise, and use Mooji and Krishnamurti as a reference and their style.</blockquote><p>On the bottom, you have Documents + Search. Here you can upload your Knowledge base document (same as in Botpress) but it is not essential.</p><p>That’s it for the setup.</p><p>Go ahead and hit Publish.</p><p>After that, click Export and head down to the APIendpoints.</p><p>Copy the APIurl + Barer token and paste it into the code I provided above.</p><p>P.s. don’t use the code they provided since it will create conflict inside of Botpress.</p><p>That’s it. Your Chatbot is now powered by ChatGPT. Sweet!</p><p><strong>Node Structure and Testing</strong></p><p>Your final node structure should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*06nWsUtkItFMh7Ko" /></figure><p>On the right-hand side of the Botpress interface, you have Emulator where you can test out if everything runs smoothly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/0*dpO-eKH6_6UlFJUt" /></figure><p>Works great!</p><p>Botpress has an option to export/import the bots. So here is the Google Drive link for the bot we created so you can import it and explore it. <a href="https://drive.google.com/file/d/1UPzuz9OihoBSGWOI-GVr7R8ARQH9Dmeu/view?usp=sharing">Download link.</a></p><p>You can import the bot once you created your first bot on the left-hand side of the menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*gNEp9IIRLJU6buF7" /></figure><p>Go ahead and click “Publish” and we are ready to connect the bot with WhatsApp.</p><p><strong>Connecting the bot to WhatsApp</strong></p><p>In the main menu of Botpress select the bot you have created and go to the Integrations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WFINHTK-Llg8qx9g" /></figure><p>Click on “Browse in Hub” and install WhatsApp.</p><p>Before we go to the Meta for Business, we will need a number to use for our Business purposes.</p><p><a href="https://46elks.com/register">46elks</a> is just the perfect solution for this.</p><p>Create an account, add your credits, and buy a number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7pXXTuDgjkcspXC6" /></figure><p>You will need to check the verification code from Meta Business later on.</p><p>You can do this by navigating to “Logs” and clicking on the received message.</p><p>It should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EWyV7DdI8vcWOpDR" /></figure><p>But more on that later on.</p><p>Head to <a href="http://developers.facebook.com/">Meta for Developers</a>.</p><p>Select Create App and select “Other”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3ooiDtS76HKfNudU" /></figure><p>Select an app type -&gt; Business, and add the app name, contact email, and business account.</p><p>On the home screen click “Set up” for WhatsApp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g2oNR-5X4egBMM-J" /></figure><p>Here you will be asked to connect your WhatsApp with your Meta Business Account.</p><p>WhatsApp has 1000 messages for free per month and this should be enough for small/medium businesses.</p><p>First off, we need to connect our Chatbot to WhatsApp.</p><p>Click on API Setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GKr-DvYbRrpLz-v6" /></figure><p>Copy that temporary access token and paste it into Botpress + copy the Phone number ID and do the same.</p><p>Click on Configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4oVs5NKVLDrmpfCQ" /></figure><p>In the Botpress interface create Verify token name (I just went with “Test Bot”) and copy the given link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Tew4De1mAHwDoxLE" /></figure><p>Paste those variables in Meta.</p><p>Before saving the webhook in Meta, you need to save the configuration in Botpress.</p><p>It should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QsriSgrSSOW7Pnha" /></figure><p>Okay, next off verify and save webhook in Meta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9_w6iTvJ4APgVQq6" /></figure><p>Perfecto, almost there.</p><p>Click on Manage (under webhook fields) and subscribe for the following “messages”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VfKSEzohQfye8xB7" /></figure><p>Now is a good time to test the connection.</p><p>Go to API Setup in the Meta account and add your number to receive the test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TlHilJeltXcG9bIO" /></figure><p>Click Manage phone number list. Enter your phone number and verify it.</p><p>You can click Send message and you should receive the test message following with Botpress first message we created.</p><p>The bot should be working if you follow all the instructions.</p><p>To finish everything we need to connect our <a href="https://46elks.com/register">46elks</a> phone number and go live with the app we created in Meta for devs.</p><p>For that, we need to create a Permanent Access token.</p><p>Click on My Apps and click on your business name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9bHnrpWOzf9ijBN" /></figure><p>Under System users, we need to add new users.</p><p>Click add and accept the terms.</p><p>The system username can be Chatbot (or whatever you want) and for the system user role choose Admin.</p><p>Create a system user.</p><p>Click Add Assets -&gt; Select Apps -&gt; Select Created App -&gt; and enable Full control -&gt; Save changes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5tHQ_1r70_94Ravt" /></figure><p>Select the asset and click Generate Token.</p><p>From the list select:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/0*M0J1Mtq-jGpd1lpg" /></figure><p>Almost there!</p><p>Click Generate token copy that token and enter it into the Botpress Access token.</p><p>Now you have a permanent access token (whereas before you only had 23 hours for the test token).</p><p>The last thing, connect the business number.</p><p>Under API Setup in Meta developer, under step 5. Click add a phone number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O-CCaHibibrfViHd" /></figure><p>Enter your Business name, web address, and country click next and fill out the rest of the info.</p><p>Choose the country of the phone number and enter the number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rwgx8Qi8hOUe3mIC" /></figure><p>Click next and finish off by going to the “Logs” in 46elks dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Uq0ERf1QL0TyXGvA" /></figure><p><strong>Final Thoughts</strong></p><p>Wow. This ended up being THE tutorial 😀</p><p>I hope you had fun, learned something new, and most of all, see some value in this + see the way to integrate it with your business.</p><p>If you have any questions, please feel free to contact me at <a href="/service/mailto:luka@luminary.hr">luka@luminary.hr</a> or reach out to <a href="http://help@46elks.com/">help@46elks.com</a></p><p>Thank you for your time and patience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a07135c41f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schedule SMS updates with PHP and cronjobs]]></title>
            <link>https://medium.com/46-thoughts/schedule-sms-updates-with-php-and-cronjobs-7d1e5242e90?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d1e5242e90</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[sms-api]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cron]]></category>
            <category><![CDATA[sms]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Tue, 22 Dec 2020 13:54:40 GMT</pubDate>
            <atom:updated>2020-12-22T14:40:26.637Z</atom:updated>
            <content:encoded><![CDATA[<h3>Schedule SMS with PHP and cron</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xK5S35wxklqH-MCUbpxCJA.png" /></figure><p>This quick guide will demonstrate how to create a simple PHP script to automate weekly SMS send-outs.</p><h3>What you will accomplish…</h3><p>Every Saturday at 8 am an SMS is automatically sent to all gym members with a link to a schedule of the coming week’s class schedule.</p><h4>What you need to follow this guide…</h4><ul><li>A <a href="https://46elks.com/register">46elks account</a>.</li><li>Ability to <strong>SSH</strong> into a <strong>Linux server</strong>.</li></ul><p>Let’s get started🚀</p><h3>Create a PHP file that sends SMS</h3><p>This PHP file sends a preset message to a defined list of recipients. In your code editor, create a PHP file and copy the code so it looks like the example below, except with your 46elks authorization details where indicated by comments.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7dce13864af4b3bfe1cc3c939135611f/href">https://medium.com/media/7dce13864af4b3bfe1cc3c939135611f/href</a></iframe><h3>Parts of a cron command</h3><p>It is good to have an overview of cron before we dive into our example. Below is a brief overview of cron commands and how they work. Here is a simple cron job example:</p><pre>10 * * * * /usr/bin/php /www/virtual/username/cron.php &gt; /dev/null 2&gt;&amp;1</pre><p><strong>There are two main components of a cron job:</strong></p><p>First, the timing: 10 * * * * - here you set the minutes, hours, days, months, and weekday settings (more below).</p><p>Second, the command itself:</p><pre>/usr/bin/php /www/virtual/username/cron.php &gt; /dev/null 2&gt;&amp;1</pre><p>The command itself in this example has three parts:</p><p>/usr/bin/php - PHP scripts are usually are executable by themselves which is why we need to run it through the PHP parser. You can use the command which php to check the correct path.</p><p>/www/virtual/username/cron.php - This is just the path to the script.</p><p>&gt; /dev/null 2&gt;&amp;1 - (optional) This part is handling the output of the script.</p><p>In the above example, the cron job is set to send every 10 minutes — or more specifically, every 10th minute of every hour of every day of every month, every day of the week. An asterisk is a wildcard that stands for “all”.</p><p>Here is a break down of the timing elements:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*P9KmM449QxCJa3Pd0irlqg.png" /><figcaption>Timing of a cronjob</figcaption></figure><h3>Setting up our cronjob</h3><p>Below is all the information you need to create a cron job that runs every Saturday at 8 am. Once you have access to your server, you can check if any current jobs are running with the following command to list all crontabs:</p><pre>crontab -l</pre><p>This will list the crontab contents.<br>(<strong>NOTE:</strong> There may be none.)</p><p>Now, we’ll edit the crontab:</p><pre>crontab -e</pre><p>At this point, assuming you’ve never changed the default editor for your server, you may find yourself in the vim editor. It can be a little confusing and scary the first time you use it, so here’s what to do:</p><ol><li>Press ESC.</li><li>Type “i” (for “insert”) to begin editing the file.</li><li>Paste the cron command into the file.</li><li>Press ESC</li><li>Type “:wq” (for “write and quit”) to save and exit.</li></ol><p><strong>That’s it! 🥳 Now you can sit back and your gym members will be happy to receive their updates.</strong></p><h3>Some other potential use-cases for cron jobs</h3><ul><li>Sending our reminders and updates to your staff or customers</li><li>Checking the status of your servers and website and notifying your support team</li><li>Requesting monthly feedback from your team</li><li>Checking your database for unpaid bills and sending notices</li><li>Sending yourself weekly SMS updates on your investments</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d1e5242e90" width="1" height="1" alt=""><hr><p><a href="https://medium.com/46-thoughts/schedule-sms-updates-with-php-and-cronjobs-7d1e5242e90">Schedule SMS updates with PHP and cronjobs</a> was originally published in <a href="https://medium.com/46-thoughts">46 thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is SMS two-factor authentication (2FA) and why you should add it to your mobile app in 2021]]></title>
            <link>https://medium.com/46-thoughts/what-is-sms-two-factor-authentication-2fa-and-why-you-should-add-it-to-your-mobile-app-in-2021-288ed3ba8f7b?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/288ed3ba8f7b</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[sms-api]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[sms]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Fri, 18 Dec 2020 10:59:50 GMT</pubDate>
            <atom:updated>2020-12-20T02:44:40.779Z</atom:updated>
            <content:encoded><![CDATA[<p>App and data security have been a big issue for developers for a while now and it’s only getting more important. With millions of applications available online and millions more through the Apple and Google app marketplaces, the opportunity for individuals engaged in cybercrime is massive. If there was a time to add two-factor authentication (2FA) to your applications, it is now.</p><p>Two-factor authentication (2FA) is an essential first step to securing your mobile application and if you are not doing this in 2020, you need to start. Using the 46elks API to send one-time passwords to your users is a simple and effective way to increase the security of your IOS, Android and web-based applications. As a developer, it provides you with a smooth way to integrate improved security without needing operator connections or third party software. As a consumer, SMS 2FA is familiar and something we all have ready access to.</p><h3>What is two-factor SMS authentication (2FA)?</h3><p>SMS Two Factor Authentication (2FA) is a security verification procedure that allows a company to more safely identify their users. The company usually triggers the authentication process when users of their service are logging into their website, software, or mobile application. During the log-in process, the user provides their mobile number so they can receive a one-time password (OTP), token or other identifier and an SMS is sent to that number. When an OTP is time-limited it is known as TOTP and this type of password offers increased levels of security as it decreases the chance that brute force attacks are successful.</p><p>Once the user has received their OTP, they can then use this code to log into the service of the company. This process significantly reduces the ability for online data to be compromised as only the user with the linked phone number will be able to access the account at the time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*_Fp7YYd030bQ8FS6u5qBGw.png" /><figcaption>Flowchart of the technical process to authorise a user with an SMS one-time password</figcaption></figure><h3>What are the benefits of SMS 2FA to your mobile app?</h3><p>The primary reason we want to use 2FA is to confirm that the person requesting to use our service is that person in reality and not someone attempting to gain access to that person’s account. We need to match information a person may have with the information we have in our system. There are several types of information a person may have that we can use to identify them. Three common ways to view these different types of information:</p><ol><li><strong>Something the user knows (password, PIN, pattern, etc.)</strong></li><li><strong>Something the user has (SIM card, one-time password generator, or hardware token)</strong></li><li><strong>A biometric property of the user (fingerprint, retina, voice)</strong></li></ol><p>By sending an OTP to your users via SMS or a phone call you are verifying something the user has (well, has now been given 😊). If this is done in combination with a username and password, you have successfully implemented two-factor authentication.</p><h3>Verifying with SMS provides a good customer experience</h3><p>SMS and phone call authentication provide your users with an experience they are familiar with and most people have a phone within arms reach. Unique mobile phone usage in Europe was above 85% in 2020. If you are not sending SMS to your customers for authentication or anything else for the matter, you should be.</p><p>But aside from the fact that nearly everyone has a mobile phone, SMS is a technology that we are all familiar with, behaves similarly on all devices and doesn’t require any extra applications to be installed. Whilst the way you trigger sending SMS and Phone calls from IOS and Android might differ, the outcome will be identical. This ease of use and familiarity is making your customers lives easier and thus improving their experience with your products and services.</p><p>Flarie is a 46elks customer that has over 800,000 active users in their mobile gaming service. Given that users can win real prizes with Flarie, fraudulent accounts and scammers are a real financial concern. Flarie decided to use 46elks to send OTP SMS to their customers and found that not only did it decrease fraud but it also improved their user experience. Read more about Flarie <a href="https://46elks.com/customer-stories/flarie">here</a>.</p><h3>Automate SMS authentication integration with 46elks</h3><p>Using the 46elks API to add OTP means you can implement authentication processes in the way your team wants them to. Here are the basic building blocks to adding SMS OTP authentication to your mobile app:</p><ol><li>A 46elks account (<a href="https://46elks.com/register/medium">Get one here</a>)</li><li>Create a database to record the expected OTPs and user information</li><li>Create a trigger in your application that does two things:</li></ol><ul><li>Generate an OTP and add it to the database along with the appropriate user information (and time if necessary)</li><li>Sends an SMS to the customer with the same OTP using the 46elks API</li></ul><pre><strong>import</strong> requests</pre><pre>response = requests.post( <br>&quot;https://api.46elks.com/a1/sms&quot;, <br>auth = (&quot;u3498dfu93unf934&quot;, &quot;dlgfkmfiouvber430834&quot;), <br>data = { <br>&quot;from&quot;: &quot;AuthElk&quot;, <br>&quot;to&quot;: &quot;+46766861004&quot;, <br>&quot;message&quot;: &quot;Your one-time password is 28364&quot; <br>})</pre><p>4. Once the user has attempted to enter the password in your application you can assess this entry attempt against the expected OTP in your database</p><ul><li><strong>If it matches</strong> then you can allow entry</li><li><strong>If it does not match</strong> then you can offer reattempts or simply deny the service</li></ul><p>These are the broad building blocks and depending on your application you may need to tweak this flow slightly to provide your users with a great experience and secure your applications.</p><p><strong>Key Takeaways</strong></p><ul><li><strong>Data and application security becoming increasingly important and adding SMS authentication improves your application’s resilience to attacks</strong></li><li><strong>Adding SMS OTP is familiar, simple and effective which means the experience your customers have is positively impacted. It is the small details of applications that make the biggest difference in many cases</strong></li><li><strong>Adding SMS authentication to your application is simple and straightforward with the 46elks SMS and Phone calls API</strong></li></ul><p>If you are looking for more ways to use SMS and phone calls make sure you check out our tutorials and guides on our website <a href="https://46elks.com/tutorials">www.46elks.com/tutorials</a> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=288ed3ba8f7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/46-thoughts/what-is-sms-two-factor-authentication-2fa-and-why-you-should-add-it-to-your-mobile-app-in-2021-288ed3ba8f7b">What is SMS two-factor authentication (2FA) and why you should add it to your mobile app in 2021</a> was originally published in <a href="https://medium.com/46-thoughts">46 thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using SMS and Google Sheets to gather last minute replies for events]]></title>
            <link>https://46elks.medium.com/using-sms-and-google-sheets-to-gather-t-shirt-sizes-from-hackers-4591bb57b557?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4591bb57b557</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[events]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Wed, 21 Feb 2018 12:01:20 GMT</pubDate>
            <atom:updated>2020-12-17T21:37:15.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VWepUcRmMYnmVRPBsr6z7A.jpeg" /></figure><p>This is a story of how we got T-shirts into the hands of eager <a href="https://www.trainhack.com/">Trainhack</a> participants despite forgetting to ask for T-shirt size in the registration form. It’s a nice showcase of how easy it is to automatically collect feedback using SMS. Of course, you can ask for feedback about other things than T-shirt sizes… we just really like T-shirts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*mT2iNXjYVRjPq8xjUpDTBA.gif" /><figcaption>Size distribution was surprisingly uniform at Trainhack.</figcaption></figure><h3>Setup</h3><p>The setup for this hack is pretty simple. You’ll need the following:</p><ul><li>A Google account<br><em>You probably have one of these already.</em></li><li>A 46elks account<br><em>Sign up </em><a href="https://www.46elks.com/"><em>here</em></a><em> if you haven’t already.</em></li><li>A Virtual Phone Number (preferrably in your home country)<br><em>You can purchase a Virtual Phone Number in the </em><a href="https://dashboard.46elks.com/"><em>46elks dashboard</em></a><em> after creating an account. Prices vary but are typically 30 SEK / 3 EUR / 4 USD per month.</em></li></ul><p>The basic idea is to use your virtual number to send an SMS to a list of contacts. When the recipient replies to your SMS, they’ll reply directly to your virtual number and you’ll be able to programatically forward the contents of the message anywhere you like — in this case, into Google Sheets. Simple, right?</p><h3>Forward incoming SMS to Google Sheets</h3><p>It’s probably a good idea to sort out the receving part of this hack before sending out any SMS. You know, in case someone replies before you get everything set up. Luckily, we’ve already written a pretty in depth tutorial and made a video on forwarding incoming SMS to Google Sheets. It’s called <a href="https://medium.com/46-thoughts/receive-sms-into-google-spreadsheet-435b51393493"><strong>Forwarding Incoming SMS to Google Sheets</strong></a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLAXJypI5njY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLAXJypI5njY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLAXJypI5njY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d34be92272c39d9e338a8c82cecb90c4/href">https://medium.com/media/d34be92272c39d9e338a8c82cecb90c4/href</a></iframe><p>You can follow that tutorial all the way through without changes. Of course, if you’ve already purchased a Virtual Phone Number you can skip the part where you purchase another one. Or don’t. Just remember to report back here once you’re done!</p><h3><strong>Send multiple SMS messages with Just Send!</strong></h3><p>At this point you should be able to send an SMS from your phone to a Virtual Phone Number and see it pop up in a spreadsheet. If not, go back and make sure you haven’t missed a step.</p><p>All that’s left now is to actually request feedback by sending an SMS from your virtual number to a list of recipients. There are lots of ways to do this, of course, but to keep it simple we’re going to use <a href="https://justsend.46elks.com/"><strong>Just Send</strong>!</a> which is a graphical interface on top of the 46elks API. It’s pretty self explanatory; visit <a href="https://justsend.46elks.com/">justsend.46elks.com</a>, upload your contacts and click send.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CLjJ9gZwYF320fg4PwJ66A.png" /><figcaption>Like we said, it’s pretty self-explanatory.</figcaption></figure><h3>Sit back and relax</h3><p>Once you’ve clicked “send” there’s really not much more to do except wait for responses to start rolling in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*mT2iNXjYVRjPq8xjUpDTBA.gif" /></figure><p>Take a moment to enjoy the fact that you are now a master of automatic feedback — now that you’ve done it once it’s pretty easy to adapt this to other purposes. You can be the master of customer feedback. Or party invitations. Or car pools.</p><p>Us? We’re quite happy being the master of T-shirts.</p><p><em>Have questions? Feedback? Want to show off what you’ve built? Leave a comment below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4591bb57b557" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schedule Sending SMS from Google Sheet]]></title>
            <link>https://medium.com/46-thoughts/schedule-sending-sms-from-google-sheet-2fe0ed80bfc3?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fe0ed80bfc3</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[sms]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Tue, 06 Feb 2018 14:38:47 GMT</pubDate>
            <atom:updated>2021-12-17T10:10:47.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhP5DfMkBtFAakcymen6hg.png" /></figure><p>Previously we have written about <a href="https://medium.com/46-thoughts/receive-sms-into-google-spreadsheet-435b51393493">how to receive SMS and store them in a Google Sheet</a> as well as <a href="https://medium.com/46-thoughts/send-sms-from-google-spreadsheet-71f11d358361">how to send SMS from a Google Spreadsheet</a>. In this third part of the SMS &amp; Google Sheets mini series we will cover how to schedule sending SMS from Google Spreadsheets.</p><h3>Preparations</h3><p>Set everything up according to the <a href="https://medium.com/46-thoughts/send-sms-from-google-spreadsheet-71f11d358361">send SMS from Google Spreadsheet</a> tutorial. What you will do there is <a href="https://www.46elks.com/create-account">create a 46elks account</a>, create a Google Spreadsheet and copy/paste some code to send SMS. Once that is done you are ready to start scheduling SMS. To do that you need to define when each SMS should be sent and set up the schedule.</p><p>Let’s get into the details!</p><h3>Define when each SMS should be sent</h3><p>To be able to define when an SMS should be sent you first need to specify how you prefer to write dates. Do this by going into <strong>File &gt; Project Properties</strong> in your script. Go to the <strong>Script properties</strong> tab and add a Property named <em>DateFormat</em> (written exactly like that, not <em>dateformat</em> or <em>Dateformat</em>). Set the value to your preferred date format, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U0iXBKdy-jHcmx9vr6Odfg.jpeg" /></figure><ul><li>YYYY-MM-DD HH:mm (if you prefer 2017–12–25 13:37)</li><li>MM/DD/YYYY HH:mm (12/25/2017 13:37)</li><li>DD/MM/YYYY HH:mm (25/12/2017 13:37)</li></ul><p>Save the Project Properties and return to your Google Sheet. Add a new column called <em>When </em>after the <em>Info</em> column. For each row write the date and time you want to send the message, use the date format you specified earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OSAsL3skNpBlyhtSIf6h_w.jpeg" /></figure><h3>Add Time Zone support</h3><p>The time zone of your Google Sheet that will be used for all the dates and times. You can check your spreadsheets time zone in the Spreadsheet Settings (available via the File menu).</p><p>To be able to deal with time zones in the correct you need to use a library called <a href="https://momentjs.com/">Moment</a>. Go back to the script and go to <strong>Resources &gt; Libraries</strong>. Enter this key into “Add a library”:</p><p><em>Mcun7NPepfBJFDW-iuQnbdo147xIduJpS</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCEsO7W8OEN0Y6UhWL6d9A.jpeg" /></figure><p>Click <strong>add</strong>, pick version 2 and <strong>save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXPUCVGCqcGRjadPWg09yQ.jpeg" /></figure><h3>Time for some code</h3><p>Replace the code you have in your script with the following and save it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fd02ee43072fe9b1e5d881bbf4b40e8/href">https://medium.com/media/8fd02ee43072fe9b1e5d881bbf4b40e8/href</a></iframe><p>This code gets the date format you specified, the spreadsheets time zone and when to send each SMS. It then sends the SMS if the date and time to send the message has already passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*kU9bg_y5gYkjqfFDkQLksg.jpeg" /></figure><p>Try it yourself by changing the script to sendElksSMS and click Run.. If you have any rows in the spreadsheet where <em>When</em> is set to the past you should be receiving an SMS.</p><h3>Schedule sending messages</h3><p>Finally it is time to set it up so that the script runs on a schedule. Go to <strong>Edit &gt; Current project’s triggers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*QV2O7YgX8Ens6xc_YwVufQ.png" /></figure><p>Select “Add Trigger”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hOoPtYsg10EH6Agq8lEk5g.png" /></figure><p>Ensure the following settings are selected:</p><ul><li>Choose which function to run : sendElksSMS</li><li>Choose which deployment should run : Head</li><li>Select event source : Time-driven</li><li>Select type of time based trigger : Minutes timer</li><li>Select minute interval : Every 15 minutes (or as you wish 🚀)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*c1TVwKA6xEGFGrWn2oynrA.png" /></figure><p>Finally click <strong>Save. </strong>Every 15 minutes your script will run and check for SMS to send. To schedule new SMS just add a new row in your Spreadsheet and set the time you want it to be sent.</p><p><strong>Let us know (help@46elks.com) if we can help you</strong>, if perhaps there is anything unclear in this tutorial, or if you’d like for us to write another one.</p><p>Please be advised that Google has a limitation on how long a script is allowed to run: <strong>“maximum execution time”</strong>. It depends on which kind of Google account you use, the lowest time allows a script to run for 6 minutes. If you plan to send or receive a large amount of SMS at the same time, <strong>please contact 46elks support on +46766861004 or </strong><a href="/service/mailto:help@46elks.com"><strong>help@46elks.com</strong></a>.</p><p>Also check out the previous parts of this a mini series on Google Spreadsheets and SMS:<br><a href="https://medium.com/46-thoughts/receive-sms-into-google-spreadsheet-435b51393493">Part 1: Receive SMS from Google Spreadsheet</a><br><a href="https://medium.com/46-thoughts/send-sms-from-google-spreadsheet-71f11d358361">Part 2: Send SMS from Google Spreadsheet</a></p><p>// 46elks team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fe0ed80bfc3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/46-thoughts/schedule-sending-sms-from-google-sheet-2fe0ed80bfc3">Schedule Sending SMS from Google Sheet</a> was originally published in <a href="https://medium.com/46-thoughts">46 thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hur Microsoft använde Flicknappar, Flow och SMS för att hitta expert på Tech Days]]></title>
            <link>https://medium.com/46elks/hur-microsoft-anv%C3%A4nde-flicknappar-flow-och-sms-f%C3%B6r-att-hitta-expert-p%C3%A5-tech-days-4438bddb912c?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4438bddb912c</guid>
            <category><![CDATA[flic]]></category>
            <category><![CDATA[sms-api]]></category>
            <category><![CDATA[microsoft-tech-days]]></category>
            <category><![CDATA[microsoft-flow]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Mon, 23 Oct 2017 18:12:35 GMT</pubDate>
            <atom:updated>2020-10-20T12:21:17.684Z</atom:updated>
            <content:encoded><![CDATA[<p>På Microsoft Tech Days i Stockholm kunde alla deltagare be en expert om hjälp med Azure, Windows, Office eller säkerhet. Dessa experter var väldigt upptagna under hela konferensen och kunde inte sitta och vänta på att någon hade frågor, så Microsoft byggde en applikation där deltagare kunde klicka på en knapp för att kalla på en expert. Lösningen implementerades med .NET, Microsoft Flow, Flicknappar och <a href="https://www.46elks.se/">46elks SMS API</a>.</p><p>Spindeln i nätet är en .NET-applikation som koordinerar allt. I dess databas finns listor på experter för varje ämne. Applikationen visar användare en lista på vilka experter som har efterfrågats och hur lång tid det tar innan de kommer och kan hjälpa till.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZtqDer6WiqV7DbmrKX7bKg.jpeg" /></figure><p>När någon klickar på en av de fyra <a href="https://flic.io/">Flicknapparna</a> (en var för Azure, Windows, Office och säkerhet) så skickar knappen en signal till .NET-applikationen via <a href="https://flow.microsoft.com/en-us/connectors/shared_flic/flic/">Flics connector</a> på Microsoft Flow. Applikationen skickar sedan ut SMS till varje relevant expert via <a href="https://www.46elks.se/">46elks SMS API</a>. Experterna kan sedan svara på detta SMS genom att skicka tillbaka ett eget SMS med information om hur snart de kan vara på plats för att hjälpa till. Detta svars-SMS går via 46elks till .NET-applikationen som uppdaterar sin lista över förfrågningar.</p><p><a href="https://46elks.com/tutorials/send-sms-with-c">Genomgång av hur du steg för steg kan bygga liknande lösning, med kodexempel, finns hos 46elks.com</a>.</p><p>Anledningen till att Microsoft valde SMS när det finns så många andra möjliga kommunikationskanaler är att SMS är väldigt enkelt att implementera (via ett API-anrop) och att det är en robust teknologi. Experterna behöver inte installera någon ny app, hålla koll på sin överfulla epost-inkorgar eller ens ha en bra internetuppkoppling. Allt som behövs är en mobiltelefon uppkopplad till mobilnätet för att ta emot och svara på förfrågningar.</p><p>Resultatet är att deltagarna på Tech Days kan klicka på en knapp och så kommer någon och hjälper till. Det är en riktigt bra användarupplevelse. <a href="https://46elks.se/stories/techdays-askme"><strong>Många fler detaljer om hur detta är implementerat, inklusive kodexempel, finns på 46elks.se</strong></a>. För att komma igång med <a href="https://46elks.com/tutorials/send-sms-with-c">46elks SMS API så läs denna C# guide</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4438bddb912c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/46elks/hur-microsoft-anv%C3%A4nde-flicknappar-flow-och-sms-f%C3%B6r-att-hitta-expert-p%C3%A5-tech-days-4438bddb912c">Hur Microsoft använde Flicknappar, Flow och SMS för att hitta expert på Tech Days</a> was originally published in <a href="https://medium.com/46elks">46elks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Microsoft used Flic buttons, Flow and SMS to find experts at Tech Days]]></title>
            <link>https://46elks.medium.com/how-microsoft-used-flic-buttons-flow-and-sms-to-find-experts-at-tech-days-94e8d5b5c3c3?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/94e8d5b5c3c3</guid>
            <category><![CDATA[flic]]></category>
            <category><![CDATA[microsoft-flow]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-tech-days]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Mon, 23 Oct 2017 18:11:42 GMT</pubDate>
            <atom:updated>2021-08-30T15:29:39.215Z</atom:updated>
            <content:encoded><![CDATA[<p>At Microsoft Tech Days in Stockholm attendees could ask experts for help with Azure, Windows, Office or Security. To enable these experts to be fully productive during the conference and not have to sit and wait for questions to come in, Microsoft built an application that let attendees <strong>press a button to get assistance from an expert</strong>. This was built with .NET, Microsoft Flow, Flic buttons and the <a href="https://www.46elks.com/">46elks SMS API</a>.</p><p>The core of the solution is a .NET application that coordinates everything. In its database it has lists of experts for each subject. The application shows attendees a list of which experts have been requested and when they will show up to help you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZtqDer6WiqV7DbmrKX7bKg.jpeg" /></figure><p>When an attendee presses one of the four <a href="https://flic.io/">Flic buttons</a> (one each for Azure, Windows, Office and Security) the button sends a signal to the .NET application via Microsoft Flow to the <a href="https://flow.microsoft.com/en-us/connectors/shared_flic/flic/">Flic connector</a>. The application then sends out an SMS to each relevant expert using the <a href="https://www.46elks.com/">46elks SMS API</a>. The experts can then respond to this SMS with an SMS with an estimate of how quickly they can arrive to help out. This responding SMS is sent via 46elks to the .NET application that updates the list of active expert requests.</p><p>A complete walkthrough of <a href="https://46elks.com/tutorials/send-sms-with-c">how to build the .NET application, with code examples, is available at 46elks.com</a>.</p><p>The reason Microsoft picked SMS is that SMS is very simple to implement (one API call) and a it’s a robust and secure technology. Experts can avoid the need to install a new app or check their overfull mail inboxes. They don’t even have to rely on a working internet connection. As long as their cell phone is connected to a mobile network they will be able to receive and respond to requests.</p><h3>The result</h3><ol><li>Attendee of the conference who wants some help and has questions about clicks the Flic button.</li><li>The appropriate Microsoft expert receives an SMS notification and can make their way to greet the attendee.</li><li>The attendee gets support in a way that utilises technology in a unique and appropriate way. Perhaps this experience stays with them and inspires them to create something with Microsoft, Flic or 46elks products!</li></ol><p>To get started with the <a href="https://46elks.com/tutorials/send-sms-with-csharp">46elks SMS API and create a similar .NET application take a look at this C# tutorial</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94e8d5b5c3c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Send SMS from Google Spreadsheets]]></title>
            <link>https://medium.com/46-thoughts/send-sms-from-google-spreadsheet-71f11d358361?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/71f11d358361</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[google-spreadsheets]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Fri, 10 Feb 2017 14:18:21 GMT</pubDate>
            <atom:updated>2023-10-19T11:19:20.079Z</atom:updated>
            <content:encoded><![CDATA[<p>You have a Google spreadsheet containing the names and phone numbers of people and would like to send them a text message (SMS).</p><p>This tutorial assumes no prior knowledge of programming or custom telephony. If you like to code we highly recommend that you check out our <a href="https://www.46elks.com/">API over at 46elks.com</a>.</p><h4>1. Create a 46elks account</h4><p>First off, you’re going to <a href="https://46elks.com/">register an account at</a> 46elks. 46elks lets your applications send and receive SMS, MMS and voice calls over the internet . We’ll be using the SMS features in this tutorial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*Em62yLHNTXOhZtdDy-REfw.png" /></figure><p>Once you’ve created your account you’ll be sent to the Dashboard. Leave it open, you’ll need it later.</p><h4>2. Create a Google spreadsheet</h4><p>Now go ahead and <a href="https://drive.google.com/">create a new Google spreadsheet</a>. Name it <strong>sms_contacts </strong>and add headings <em>Name</em>, <em>Number, Message, State</em> and <em>Info</em> to the first five columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pqcAz82kIE2g5rorggV5w.png" /></figure><h4>3. Add some contacts</h4><p>Now let’s populate it with a few people we want to send messages to. Note that the phone number needs to be in international format. This is easy enough to fix if you have your numbers in a local format, just:</p><ul><li>Remove any spaces and parenthesis</li><li>Remove any leading zeros</li><li>Prepend your <a href="https://countrycode.org/">country code</a> to the number</li></ul><p>For example, a local US number such as (216) 208–0459 would be written as 12162080459. A Swedish mobile number such as 076 686 1004 would be formatted as 46766861004.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e6IbD-7q3rKANbaAJXgmgw.jpeg" /></figure><p><strong>The message</strong><br>You can set this to anything you want, of course, but since we have the names it would be nice to include them in the message. One way of doing that is to paste the code below into all of your “Message” cells:</p><pre>=CONCATENATE(&quot;Hi &quot;, INDIRECT(&quot;R[0]C[-2]&quot;, false), &quot;! Thanks for coming to the event last night!&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9P6hs3Ky2bRIcbY9jYxbA.jpeg" /><figcaption>All messages are generated by the same formula but interpolate different names</figcaption></figure><h4>4. Add a Google script to the spreadsheet</h4><p>Now we’re going to connect the spreadsheet to your 46elks account via Google Scripts. Create a new script from your spreadsheet by selecting <strong>Extensions</strong> <strong>&gt; App script…</strong> in the toolbar. You should be met with a new page that looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaTypEo9PLCg6aAJaV6QMQ.png" /></figure><p>Replace everything in the editor with the following code:</p><pre>function sendElksSMS() {<br>  // Get the properties <br>  var prop = PropertiesService.getScriptProperties();<br>  var username = prop.getProperty(&#39;46elksUsername&#39;);<br>  var password = prop.getProperty(&#39;46elksPassword&#39;);<br>  var spreadsheetUrl = prop.getProperty(&#39;spreadsheetUrl&#39;);<br>  var sender = prop.getProperty(&#39;46elksSender&#39;);<br>  var auth = Utilities.base64Encode(username + &quot;:&quot; + password);<br>  <br>  // Open the requested SpreadSheet and Sheet<br>  var spreadSheet = SpreadsheetApp.openByUrl(spreadsheetUrl);<br>  var sheet = spreadSheet.getSheets()[0];<br>  var range = sheet.getRange(2, 1, sheet.getLastRow() - 1, 5).getValues();<br>  <br>  // Loop over all rows in the range and send the SMS<br>  for (var i in range) {<br>    if (range[i][1] == &#39;&#39; || range[i][3] == &#39;SENT&#39;) continue;<br>    var state = sheet.getRange(2+Number(i), 4);<br>    var info = sheet.getRange(2+Number(i), 5);<br>    try {<br>      UrlFetchApp.fetch(&quot;https://api.46elks.com/a1/SMS&quot;, {<br>        &quot;method&quot;: &quot;post&quot;,<br>        &quot;headers&quot;: { &quot;Authorization&quot;: &quot;Basic &quot; + auth },<br>        &quot;payload&quot;: {<br>          &quot;from&quot; : sender,<br>          &quot;to&quot; : &#39;+&#39; + range[i][1],<br>          &quot;message&quot; : range[i][2]<br>        }<br>      });<br>      state.setValue(&#39;SENT&#39;).setBackground(&#39;#93c47d&#39;);<br>      info.setValue(&#39;Sent on &#39; + new Date());<br>    } catch (err) {<br>      state.setValue(&#39;FAILED&#39;).setBackground(&#39;#e06666&#39;);<br>      info.setValue(String(err).replace(&#39;\n&#39;, &#39;&#39;));<br>    }<br>  }<br>}</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c876c44707113c45d33692e8c430aa28/href">https://medium.com/media/c876c44707113c45d33692e8c430aa28/href</a></iframe><p>We now need to tell the script which spreadsheet it should work with. Open your spreadsheet again and find out what the spreadsheet is called and copy it (In a new spreadsheet it’s called “Sheet1”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*vjys3gWAJdSZellpik5qHw.png" /></figure><p>Switch back to the script editor. Go to <strong>Extensions &gt; App script</strong>. If you’re asked to choose a project name, call it anything you like. Next, choose the “Project settings” tab in the menu to the left. Scroll down until you find “Script Properties” Add this script property: 46elksSender to the property to be and the name of who is sending the SMS. For my case its going to be 46elks.</p><p>Next you’re going to need to enter your 46elks details into the same script properties settings. Go to 46elks.com and open the <a href="https://dashboard.46elks.com/">Dashboard</a>. On the right of the page there’s a box containing your API username and password. The password is blurred out but reveals itself if you hover over it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2pbrx6Vw1WKmzc5dwgfoA.png" /></figure><p>Now you’re going to enter two new rows into the “Script properties” box: One for your API username, one for your API password. The keys <strong>must</strong> be called exactly <strong>46elksUsername, 46elksPassword</strong>.</p><p>For United States, you need to write <strong>noreply</strong> as the Value for <strong>46elksSender </strong>instead of the phone number you registered your account with.</p><p>It should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mibWFvCiWTqqSzQLeTfXHQ.png" /></figure><p>Save the script properties and go back to the editor and click save project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9nOQTRd9jGl8-9kpxSCNqQ.png" /></figure><p>Change script to sendElksSMS and click Run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FRD8glzEsy9JvTyzqyHQfA.png" /></figure><p>You’ve now sent text messages from inside Google Spreadsheets!</p><p><strong>Let us know (help@46elks.com) if we can help you</strong>, if perhaps there is anything unclear in this tutorial, or if you’d like for us to write another one.</p><p>Please be advised that Google has a limitation on how long a script is allowed to run: <strong>“maximum execution time”</strong>. It depends on which kind of Google account you use, the lowest time allows a script to run for 6 minutes. If you plan to send or receive a large amount of SMS at the same time, <strong>please contact 46elks support on +46766861004 or </strong><a href="/service/mailto:help@46elks.com"><strong>help@46elks.com</strong></a>.</p><p>More parts of this mini series on Google Spreadsheets and SMS:<br><a href="https://medium.com/46-thoughts/receive-sms-into-google-spreadsheet-435b51393493">Part 1: Receive SMS from Google Spreadsheet</a><br><a href="https://medium.com/@46elks/schedule-sending-sms-from-google-sheet-2fe0ed80bfc3">Part 3: Schedule SMS in Google Spreadsheet</a></p><p>// 46elks team</p><p>P.S. This post was updated in the fall of 2023 to keep up with changes in Google Sheets and to make it easier to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71f11d358361" width="1" height="1" alt=""><hr><p><a href="https://medium.com/46-thoughts/send-sms-from-google-spreadsheet-71f11d358361">Send SMS from Google Spreadsheets</a> was originally published in <a href="https://medium.com/46-thoughts">46 thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forwarding Incoming SMS to Google Sheets]]></title>
            <link>https://medium.com/46-thoughts/receive-sms-into-google-spreadsheet-435b51393493?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/435b51393493</guid>
            <category><![CDATA[google-spreadsheets]]></category>
            <category><![CDATA[sms-api]]></category>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[lifehacks]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Wed, 15 Jun 2016 07:25:52 GMT</pubDate>
            <atom:updated>2021-12-17T10:11:07.386Z</atom:updated>
            <content:encoded><![CDATA[<p>You want a phone number that can receive sms and forward them into a Google Sheet. You’re in the right place! This tutorial assumes no prior knowledge of programming or custom telephony. If you like to code we highly recommend that you check out our API over at <a href="https://46elks.com/">46elks.com</a>.</p><p>Let’s get started, shall we?</p><h4>1. Setup a 46elks phone number</h4><p>First off, you’re going to register an account at 46elks and get yourself one of our phone numbers. Go <a href="https://www.46elks.com/create-account">here</a> to create an account. Once you’ve registered and logged in you’ll be taken to the Dashboard. Click “Numbers”, choose your country and click “Choose”. You will be given some more information about the number and then you can click “Buy Number”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*_NbgM5ibyFtuJrImkWR7ag.png" /></figure><h4>2. Create a Google Sheet</h4><p>Now go ahead and create a new Google Sheet. Rename it as <strong>sms_feedback </strong>and add headings <em>D</em>ate, <em>From</em> &amp; <em>Message</em>, to the three first columns:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*Sys29V8dTVzFfT9VLm_hYQ.png" /></figure><p>It’s important for the sake of this tutorial that the spreadsheet is called precisely <strong>sms_feedback</strong> (not smsfeedback, SMSFeedback or myspreadsheet).</p><h4>3. Add a Google script to the spreadsheet</h4><p>Now, we have our 46elks virtual phone number, we have the Google Sheet, now all we need is the “glue” to get them talking to each other. That glue is Google Scripts. Create a new script from your spreadsheet by selecting <strong>Tools &gt; Script editor…</strong> in the toolbar. You should be met with a new page that looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*Wzw_mLWAlVhzDf17_WR6uw.png" /></figure><p>Replace everything in the editor with the following snippet:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5dccbe89ea5f456bef2f9c333bc7de29/href">https://medium.com/media/5dccbe89ea5f456bef2f9c333bc7de29/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJ5OiBhkzL85lvkSYsKOuA.png" /></figure><p>We now need to tell the script which spreadsheet it should work with. Open your spreadsheet again and click on the address bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UhspBlzdkuCUC46mqOa_hw.jpeg" /><figcaption>The address bar</figcaption></figure><p>The highlighted text in the image below is theURL of your spreadsheet. This is what the script needs in order to figure out which spreadsheet to work with. Copy everything up until <em>#gid</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YxhUKtz4Q7jZkOSINksbVw.jpeg" /><figcaption>The spreadsheet URL. Every spreadsheet has a unique URL so yours will be different.</figcaption></figure><p>Now switch back to the script editor. Go to <strong>File &gt; Project Properties</strong>. If you’re asked to choose a project name, call it anything you like. Next, choose the “Script properties” tab in the pop-up menu. Add a new row. Set the property to be spreadsheetUrl and the value to be the URL you copied from the address bar. You should end up with something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SX9vR8O-r0rCzVvo-dfUVg.jpeg" /></figure><p>Again, it’s important that the property is called precisely spreadsheetUrl and not SpreadSheetURL,spreadsheet_url etc. Your URL will be different than the one in the above image but everything else should be the same. If all looks well then click “Save”.</p><h4>4. Deploy the script and add it to your 46elks number</h4><p>This is the final step so let’s just get to it. First, you’re going to deploy your script. Open the script editor and choose <strong>Publish &gt; Deploy as web app…</strong> in the toolbar. You should see a popup like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*qCmj5JRhZz8abUzDwXefqQ.png" /></figure><p>When deploying on the dropdown below “<em>Project version</em>” always select <strong>New</strong>. This will ensure the latest changes are applied to the new app.</p><p>It’s important to make sure that <em>“Execute the app as”</em> is set to <strong>Me</strong> and <em>“Who has access to the app”</em> is set to <strong>Anyone, even anonymous</strong>. This allows external services (like 46elks) to trigger the script. The actual spreadsheet is still private, of course.</p><p>Click <strong>Deploy</strong><em>. </em>Google will prompt you to inform you that authorization is required. Click <strong>Review Permissions</strong> and then <strong>Allow</strong>. You should see a confirmation dialogue with a URL (as the picture below). Copy this URL and login to your <a href="https://dashboard.46elks.com/">46elks dashboard</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Nu39NKTodIeedqDFmfgV7g.png" /></figure><p>Navigate to your new virtual phone number by clicking <em>“Numbers” </em>and then <em>“Edit” </em>next to the number you want to use for this tutorial. You should see a window similar to the one below. Paste your google scripts URL into the <em>“sms_url” </em>section and click “<em>Save changes”</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*Ss3w-6l3s24VgtbeqUXDPw.png" /></figure><p><strong><em>Some helpful tips sometimes necessary in this section …</em></strong></p><p>If your script URL contains something like /u/0/ or /u/1/ (the number varies) you need to remove that part of the URL before setting the <strong>sms_url</strong>. For example in this URL you remove /u/0:</p><p><em>https://script.google.com/macros/</em><strong>u/0/</strong><em>s/AK…wvC/exec</em></p><p>And get:</p><p><em>https://script.google.com/macros/s/AK…wvC/exec</em></p><p>That’s it! You’re done! Send an SMS to your 46elks number and it will magically appear in your Google Sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*aXirrqG2iwGaUB7uPGOjrg.png" /></figure><h3>Troubleshooting</h3><p>If you make changes to the script, you need to <strong>publish it again</strong> as a new version number. Don’t forget to update the <a href="https://dashboard.46elks.com/numbers"><em>sms_url</em></a> on 46elks to the updated URL.</p><p>Please be advised that Google has a limitation on how long a script is allowed to run: <strong>“maximum execution time”</strong>. It depends on which kind of Google account you use, the lowest time allows a script to run for 6 minutes. If you plan to send or receive a large amount of SMS at the same time, <strong>please contact 46elks support on +46766861004 or </strong><a href="/service/mailto:help@46elks.com"><strong>help@46elks.com</strong></a>.</p><p>That’s it for now, thanks for reading!</p><p>P.S. This post was updated September 2020 to keep up with changes in Google Sheets and to make it easier to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=435b51393493" width="1" height="1" alt=""><hr><p><a href="https://medium.com/46-thoughts/receive-sms-into-google-spreadsheet-435b51393493">Forwarding Incoming SMS to Google Sheets</a> was originally published in <a href="https://medium.com/46-thoughts">46 thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small victories and the need for motivation]]></title>
            <link>https://46elks.medium.com/small-victories-and-the-need-for-motivation-1e065082e9d2?source=rss-486cb68246a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e065082e9d2</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[46elks]]></dc:creator>
            <pubDate>Mon, 13 Jun 2016 10:56:27 GMT</pubDate>
            <atom:updated>2016-06-13T10:56:27.846Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Small victories and the need for motivation</strong></p><p>In previous articles (<a href="https://medium.com/@46elks/side-project-experience-it-learn-from-it-make-it-work-99143c595659#.3daqeyxgw">here </a>and <a href="https://medium.com/@46elks/the-birth-of-signup-a85351cae744#.8nhp3jcv5%27">here</a>) we’ve spoken about the joy of side projects and how the web app Signup came to be. Staying on the same train of thought, today we’re going to talk to you about small victories and motivation (as one could guess from the title).</p><p>If you’re a football fan, you’re probably familiar with the apparent joy of the players every time they score a goal. Even though it doesn’t win them the game (they might even be down several goals still) the team is happy and start playing with renewed energy.</p><p>Or, if you’re not a fan of sports, imagine playing Counter-strike. Every kill is a small victory, making the game more fun and energizing you for the challenges to come. Even if you get shot five seconds later, nobody can take your small victories away.</p><p>The small victories bring us joy in all parts of life. The only time the small victories tend to be under-emphasized is in the workplace. But that is where it should be most important!</p><p><strong>The danger of soul crushing routinism</strong></p><p>Humans are innately creative beings. Most of us like to have routines as the basis of our work, but we get bored if that is all work is. And let’s face it; bored people are neither creative nor productive. You want your staff to be motivated and engaged in the work they’re doing. Sometimes it’s hard, when you have a very long stretch of work with adjusting details to get everything just right. Or when you need to do what feels like the same work over and over.</p><p>That’s when you want to encourage or introduce the small victories, in the shape of smaller side projects. The 2011 book <em>The Progress Principle: Using Small Wins to Ignite Joy, Engagement, and Creativity at Work </em>by Teresa M. Amabile and Steven J. Kramer, discusses how even small steps forward can ignite and foster creativity and engagement. According to the book, it is even the single most important factor that induce creativity, productivity and commitment in the team.</p><p>There will always be routine tasks you need to get done. With side projects you can encourage your team and make sure they’re not being crushed under the day to day work. The best way to shake things up and break the routine is to encourage the creativity of your team and expand your business with side projects.</p><p>Great side projects don’t always derive automatically from your business plan (almost never, in fact). They come from the ideas that pop up in the heads of your team while working on the main business. Questions like “wouldn’t it be easier for the client if we had this feature?” or “wouldn’t this task be simpler and faster if we had a tool like…?” are the first seeds of side projects. It’s important that the team leaders encourage and nurture these seeds, especially if the proposed side projects are close to the main business or related to it.</p><p>You need to find the right balance though. Encouraging the free flow of ideas in the team isn’t the same as saying everything should be made real in a side project. The best and most attainable ideas should be chosen, but to get those you’ll want to make your team feel they can discuss their ideas freely.</p><p>P.S.<br>Be sure to check out <a href="https://signupcelebration.com/">Signup</a></p><p>The Elks :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e065082e9d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>