Skip to main content

Workflow Action: Number Formatter

The Number Formatter workflow action formats, converts, and generates numeric values for use across workflows, messages, conditions, and integrations.

Updated over 2 months ago

Who This Is For / When to Use

Use this action when you need to:

  • Convert text values into numbers for calculations or conditions.

  • Format numbers, phone numbers, or currencies before storing or sending them.

  • Generate random numbers dynamically inside a workflow.

  • Ensure numeric data is consistently formatted across accounts, messages, and integrations.


Overview: Number Formatter Action Types

The Number Formatter action includes five distinct action types:

  • Text to Number

  • Format Number

  • Format Phone Number

  • Format Currency

  • Random Number

Each action type is configured independently and returns a reusable Result value.


Adding the Number Formatter Action to a Workflow

  1. Open a workflow and add a new action.

  2. Search for Number Formatter under Internal actions.

  3. Select Number Formatter.


Using the Result Output

Every Number Formatter action generates a Result value.


You can reference this output in later workflow steps, messages, or conditions.

  • Access the result using the variable picker.

  • Path format: {{number_formatter.<step_number>.result}}


Action Type: Text to Number

Converts numeric text into a usable number.

Example: "$12,345.67"12345.67

Configuration Steps

  1. Set Action Type to Text to Number.

  2. Select the field containing the numeric text.

    • Available sources include Contact, User, Message, Account, Attribution, Custom Fields, and Custom Values.

  3. Choose the Input Decimal Mark.

    • Period (123.45)

    • Comma (123,45)

  4. Save the action.

Output

  • A numeric value returned in Result.


Action Type: Format Number

Formats an existing number into a region-specific display format.

Configuration Steps

  1. Set Action Type to Format Number.

  2. Select the numeric field to format.

  3. Define the Input Decimal Mark.

  4. Choose the To Format option.

    • Example formats include:

      • 1,234,567.89

      • 1.234.567,89

      • 1 234 567.89

  5. Save the action.

Output

  • A formatted number string returned in Result.


Action Type: Format Phone Number

Standardizes phone numbers into consistent national or international formats.

Configuration Steps

  1. Set Action Type to Format Phone Number.

  2. Select a phone-number-compatible field.

    • Only phone number fields are selectable.

  3. Choose the To Format option.

    • Examples:

      • E164 (+15413134664)

      • International (+1 541-313-4664)

      • National ((541) 313-4664)

  4. Select the Country Code if required.

  5. Save the action.

Output

  • A formatted phone number returned in Result.


Action Type: Format Currency

Formats numeric values into localized currency strings.

Configuration Steps

  1. Set Action Type to Format Currency.

  2. Select the numeric field to format.

  3. Choose the Currency.

    • Example: USD ($), EUR (€), GBP (£)

  4. Select the Currency Locale.

    • Determines separators, symbols, and placement.

  5. Save the action.

Output

  • A localized currency value returned in Result.


Action Type: Random Number

Generates a random number within a defined range.

Configuration Steps

  1. Set Action Type to Random Number.

  2. Define the Lower Range.

  3. Define the Upper Range.

  4. Set Decimal Points.

    • Controls trailing decimals (e.g., 0, 2).

  5. Save the action.

Output

  • A randomly generated number returned in Result.


Common Issues and Fixes

Incorrect numeric conversion

  • Ensure the Input Decimal Mark matches the source data format.

Phone number not selectable

  • Only phone-number-type fields are available for Format Phone Number.

Currency appears incorrectly

  • Verify both Currency and Currency Locale selections.

Unexpected random values

  • Confirm the Lower and Upper Range values and decimal settings.


FAQ

Can I use Number Formatter with data from external APIs?

Yes. Values received through an Inbound Webhook Trigger can be selected and formatted using the Number Formatter action.

Can I use multiple Number Formatter actions in one workflow?

Yes. You can add multiple Number Formatter actions, each with its own configuration and result.

Does Random Number guarantee uniqueness?

No. Random Number generates values within a range. To ensure uniqueness, track previously generated numbers using workflow logic.

Can I format dates using Number Formatter?

No. Number Formatter only supports numeric values. Use a date-specific formatting action for dates.

Can I force trailing zeros in numbers?

Yes. Use Decimal Points in Format Number or Random Number to control trailing zeros (e.g., 10.00).

Did this answer your question?