Template Quality Update

Template Quality Update#

class pywa.types.templates.TemplateQualityUpdate#

Represents a template quality update.

Triggers:

- A template's quality score changes.
Variables:
  • id – ID of Whatsapp Business Accounts this update belongs to.

  • timestamp – Timestamp of the update (in UTC).

  • template_id – The ID of the template.

  • template_name – The name of the template.

  • template_language – The language of the template.

  • new_quality_score (QualityScoreType) – The new quality score of the template.

  • previous_quality_score (QualityScoreType) – The previous quality score of the template.

class pywa.types.templates.QualityScoreType#

Every message template has a quality rating based on usage, customer feedback and engagement. A message template’s rating will appear in the WhatsApp Manager whenever it has an Active status, and will be displayed after a hyphen in the message template’s status:

Variables:
  • GREEN – Indicates high quality.

  • RED – Indicates low quality.

  • YELLOW – Indicates medium quality.

  • UNKNOWN – Indicates quality pending.