Its based on trigger action and configure where you need to create a trigger and the corresping action alongwith some configurations(if any).Here is an example to auto forward any sms:
1. Create a new Macro 2. Add the trigger : Incoming sms from a contact (one can choose among contacts,unsaved contacts,etc) 3. Add the corresponding Action, in this case, forward the sms . Add the contact to whom the sms is to be forwarded here. 4. Add the constraints if any for the trigger to work.
UPDATE: After using the app in different phones, i faced a problem that the app doesn't seem to work as expected on Mi phones. The main reason behind it is to do with the ROM of the Mi phones being configured such that it doesn't allow all applications to run in the background by default. Hence the MacroDroid app was getting killed once the user either locks the phone or some other priority app being opened.
Though the problem can be solved only after Mi releases an updated version for their ROM , here is a tweak to make the app not being closed in the background automatically.
Go to Settings->Permissions->AutoStart->. Here you will find a list of various apps . Choose the aap you need to autostart and make it active.
Next go to Settings->Permissions->Permissions-> . Here you need to grant the corresponding permissions to allow the app to use.
Next go to Settings->Battery->Manage apps battery usage->Choose apps. Choose the required app and after selecting the app choose on No restrictionsHope the post was useful. Please leave behind comments if you face some issues. Thanks.