Tutorial: Requesting subscription feedback after two weeks
You can configure Rules in the Developer Portal to request feedback from Developer Organization Owners two weeks after subscribing to a Product.
Before you begin
You must have administrator access to complete this task.
About this task
By configuring a Rule in the Developer Portal, you can schedule an email to be sent two weeks after a subscription to a Product is made. The contents of the email can be configured to contain information such as links to forums, support ticket systems, and contact details to social media sites.
Requesting feedback two weeks after subscribing to a Product can be used to solicit feedback on APIs, and inquire about whether their needs are met with the Plans that they have, and establish communication channels with API consumers.
Procedure
Results
What to do next
{ "rules_email_devorg_owner_for_feedback" : {
"LABEL" : "email devorg owner for feedback",
"PLUGIN" : "action set",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "rules_i18n" ],
"USES VARIABLES" : {
"devorg_owner_email" : { "label" : "devorg owner", "type" : "text" },
"product_name" : { "label" : "product name", "type" : "text" }
},
"ACTION SET" : [
{ "mail" : {
"to" : "[devorg-owner-email:value]",
"subject" : "Please provide feedback on our APIs",
"message" : "\u003Cp\u003EIt has been 2 weeks since you subscribed to the [product-name:value] product.\u003C\/p\u003E\r\n\u003Cp\u003EWe hope you have been enjoying using our APIs.\u003C\/p\u003E\r\n\u003Cp\u003EIf you have any feedback on them we would love to hear from you.\u003C\/p\u003E\r\n\u003Cp\u003E\u003C\/p\u003E\r\n\u003Cp\u003EPlease post in our forums or raise a support ticket if you need any assistance:\u003Cbr\/\u003E\r\n[site:url]support\u003C\/p\u003E\r\n\u003Cp\u003E\u003C\/p\u003E\r\n\u003Cp\u003EThanks!\u003C\/p\u003E",
"language" : [ "" ]
}
}
]
}
}
Then, import the following Rule:
{ "rules_plan_feedback" : {
"LABEL" : "plan_feedback",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "rules_scheduler", "application" ],
"ON" : { "application_subscribe" : [] },
"DO" : [
{ "schedule" : {
"component" :
"rules_email_devorg_owner_for_feedback", "date" : "+ 2 weeks",
"identifier" : "get subscription feedback after 2 weeks",
"param_devorg_owner_email" : "[application-devorg-owner:value]",
"param_product_name" : "[product-name:value]"
}
}
]
}
}
into the Developer Portal and
configure it. For more information on importing Rules, see Importing and exporting Rules.
