{"id":3832,"date":"2024-02-29T14:07:27","date_gmt":"2024-02-29T13:07:27","guid":{"rendered":"https:\/\/planfix.com\/blog\/?p=3832"},"modified":"2024-03-27T15:00:17","modified_gmt":"2024-03-27T14:00:17","slug":"how-planfix-scripts-work","status":"publish","type":"post","link":"https:\/\/planfix.com\/blog\/tips\/how-planfix-scripts-work\/","title":{"rendered":"How Planfix Scripts Work: Setting Up and Cases"},"content":{"rendered":"<div class=\"breadcrumbs \" typeof=\"BreadcrumbList\" vocab=\"https:\/\/schema.org\/\"><span property=\"itemListElement\" typeof=\"ListItem\"><a property=\"item\" typeof=\"WebPage\" title=\"Go to Planfix.\" href=\"https:\/\/planfix.com\/blog\/\" class=\"home\" aria-current=\"page\"><span property=\"name\">Planfix<\/span><\/a><meta property=\"position\" content=\"1\"><\/span><\/div>\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/p.pfx.so\/pf\/pA\/b5JqXg.gif\" alt=\"How Planfix scripts work\" style=\"width:688px;height:auto\" title=\"How Planfix scripts work | Planfix\"\/><\/figure>\n\n\n\n<p>One of the primary goals of the Planfix corporate management system is to improve time and <a href=\"https:\/\/planfix.com\/teams\/teamwork-management\/\" target=\"_blank\" rel=\"noopener\" title=\"\">teamwork management<\/a>. It allows you to use scripts and automation to save time on routine, repetitive tasks.<\/p>\n\n\n\n<p>This tool enables you to assign all routine tasks to algorithms that automatically execute a user-specified sequence of actions. To create your script, there&#8217;s no need to know any programming languages, write code, or have IT expertise.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Setting Up Scripts in Planfix<\/strong><\/h2>\n\n\n\n<p>The scripts setup in Planfix consists of 5 steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Events<\/h3>\n\n\n\n<p>The first step is to select the event that will trigger the script. Events can range from task creation, changes to a task field, adding a comment or a data tag, requesting access rights, to changing the task status, among others.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/zR\/QJCPBm.png\" alt=\"Setting up scripts: events \" title=\"Setting up scripts: events | Planfix\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Triggers<\/strong><\/h3>\n\n\n\n<p>In the second step, you define the conditions that will activate the script. These conditions can include specific task types, projects, assignees, auditors, statuses, and other parameters. You can set one or multiple conditions simultaneously.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/xu\/vcrkLo.png\" alt=\"Setting up scripts: triggers \" title=\"Setting up scripts: triggers | Planfix\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Script Timing<\/strong><\/h3>\n\n\n\n<p>The third step is to decide when the script will be activated\u2014either immediately or after a specific period.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/TF\/IANnJC.png\" alt=\"Setting up scripts: script timing\" title=\"Setting up scripts: script timing | Planfix\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Actions<\/strong><\/h3>\n\n\n\n<p>The fourth step, which is crucial, is configuring the action that the script will execute.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/PK\/nVqe1f.png\" alt=\"Setting up scripts: actions\" title=\"Setting up scripts: actions | Planfix\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Notifications about Changes<\/strong><\/h3>\n\n\n\n<p>In the fifth and final step, you decide whether to notify employees about the changes the script makes after it is triggered. While&nbsp;automated notifications&nbsp;can be turned off, they are enabled by default. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/JC\/F03l7b.png\" alt=\"Setting up scripts: notifications about changes\" title=\"Setting up scripts: notifications about changes | Planfix\"\/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Utilizing Scripts<\/strong><\/h2>\n\n\n\n<p>With Planfix&nbsp;<a href=\"https:\/\/planfix.com\/features\/processes-and-scripts\/\" target=\"_blank\" rel=\"noreferrer noopener\">processes and scripts<\/a>, you can automatically connect employees to tasks at various stages of execution. This is ideal for long-term business processes or tasks that involve many specialists.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Connecting Employees to Tasks Automatically<\/strong><\/h3>\n\n\n\n<p>Beforehand, set up the statuses for the required task type according to the stages of your business process. Then, specify in the scripts which employees should be connected as the task moves from one status to the next.<\/p>\n\n\n\n<p>A separate script is needed to connect employees at each stage. For example, when a task moves to the &#8220;ready for review&#8221; status, it gets assigned to the assignee, Jeremy Red.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/jo\/4LCFlR.png\" alt=\"Add assignee to the task\" title=\"Add assignee to the task | Planfix\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Quick Project Creation<\/strong><\/h3>\n\n\n\n<p>Planfix&nbsp;automated scripts&nbsp;can also be used for quick project setup. For instance, if a customer request is approved and they have made an initial payment.<\/p>\n\n\n\n<p>To create projects quickly with pre-configured tasks, first, prepare a&nbsp;<a href=\"https:\/\/planfix.com\/features\/project-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">project template<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/I2\/tZafbX.png\" alt=\"Quick project creation\" title=\"Quick project creation | Planfix\"\/><\/figure>\n<\/div>\n\n\n<p>Then, in the script, specify which information from the request will be transferred to the project card.<\/p>\n\n\n\n<p>The author of the request can be listed as a counterparty, the employee who accepted it as a customer manager, and the request parameters can be stored in a separate field. Additionally, the request itself, along with all attachments, can be moved to the project.<\/p>\n\n\n\n<p>You can set up other automations based on your needs.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/p.pfx.so\/pf\/Ba\/25zayJ.png\" alt=\"Set up automation\" title=\"Set up automation | Planfix\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Document Creation<\/strong><\/h3>\n\n\n\n<p>In a document template, you define variables. These variables are then replaced with details from the task fields in the final document, such as the name of the counterparty, the transaction amount, the date, or any other relevant data.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/nT\/JTxy6T.png\" alt=\"Document creation\" title=\"Document creation | Planfix\"\/><\/figure>\n<\/div>\n\n\n<p>Upon the occurrence of the necessary action, a script will add a comment with an attached document to the task.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/TZ\/D01iDv.png\" alt=\"Add a comment with an attached document\" title=\"Add a comment with an attached document | Planfix\"\/><\/figure>\n<\/div>\n\n\n<p>This streamlines the creation of standard documents like invoices, contracts, and reports.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sending Emails<\/strong><\/h3>\n\n\n\n<p>You can set up a template for an email to the customer and configure a script to send this email when a certain action or date occurs.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/PW\/U2H6zF.png\" alt=\"Sending emails\" title=\"Sending emails | Planfix\"\/><\/figure>\n<\/div>\n\n\n<p>In the email template, variables can also be used. The script automatically inserts the necessary details in place of the variables in the final email, just as in a document.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/planfix.com\/blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/s.pfx.so\/pf\/s1\/3AOkka.png\" alt=\"Editing email template\" title=\"Editing email template | Planfix\"\/><\/figure>\n<\/div>\n\n\n<p>Learn how to set automated comments in tasks with sent email&nbsp; in the article&nbsp;<a href=\"https:\/\/planfix.com\/blog\/use-cases\/save-sent-emails-in-task-comments\/\" target=\"_blank\" rel=\"noreferrer noopener\">&#8220;Save Sent Emails in Task Comments&#8221;<\/a>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The Benefits of Using Planfix Scripts\u00a0<\/strong><\/h2>\n\n\n\n<p>Properly configured&nbsp;<a href=\"https:\/\/planfix.com\/crm\/\" target=\"_blank\" rel=\"noreferrer noopener\">PlanfixCRM<\/a>&nbsp;scripts&nbsp;can transform your business process into an efficient production line, replacing much manual work with automated script actions.<\/p>\n\n\n\n<p>Connecting the necessary employees, creating documents, and sending reminders and notifications can be easily automated, saving time.<\/p>\n\n\n\n<p>We have a detailed article about customer notifications, explaining how to create automated notification emails for customers using scripts and how to save sent emails in task comments.<\/p>\n\n\n\n<p>It&#8217;s impossible to cover all the capabilities of scripts in a single post, so we&#8217;ll be writing more on this topic. Stay tuned and remember: Let the scripts do the work!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the primary goals of the Planfix corporate management system is to improve time and teamwork management. It allows you to use scripts and&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_s2mail":"yes","footnotes":""},"categories":[10],"tags":[230,304,16],"class_list":["post-3832","post","type-post","status-publish","format-standard","hentry","category-tips","tag-automated-script","tag-automation","tag-project-management"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/posts\/3832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/comments?post=3832"}],"version-history":[{"count":31,"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/posts\/3832\/revisions"}],"predecessor-version":[{"id":4232,"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/posts\/3832\/revisions\/4232"}],"wp:attachment":[{"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/media?parent=3832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/categories?post=3832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/planfix.com\/blog\/wp-json\/wp\/v2\/tags?post=3832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}