What the Payload tab does
A webhook, Zapier, Make or n8n integration posts JSON to your endpoint for each message it forwards. The Payload tab decides that JSON. Start from Full message, which posts the whole message.delivered event unchanged, or from a mapping: a list of field names, each with a template that says where its value comes from. The headers and the signature are the same either way, made over the body as shaped.
Open it
- 1 In the app, open Integrations and choose the integration.
- 2 Open the Payload tab.
- 3 Under Start from a template, pick Full message, Minimal, Ticket, Form submission or Custom. A webhook added in the app starts on Ticket.
Read a mapping
Each line is a field name and a template. {{ path }} is replaced by that value of the delivered message. Text around it is kept. This is Minimal:
{ "subject": "{{ subject }}", "body": "{{ body }}", "from": "@{{ sender.username }}", "link": "{{ url }}" }
{ "subject": "Gate code for Thursday", "body": "The gate code is 4821.", "from": "@hiro_nakamura", "link": "https://app.tryhoming.com/…" }
Choose the values
In Fields mode, choose Insert a value, or press / in a value, and pick from the list; in JSON mode, choose Edit as, then JSON, and type the paths. The paths a message gives:
subject body priority url delivered_at thread_id message_id sender.display_name sender.username recipient.display_name recipient.handle attachments attachment_count form.name fields.<key> one answer of the form the sender used fields all the answers
Shape a value
A helper changes a value: {{ path | helper:argument }}. Put a few one after another, applied left to right; the builder refuses a longer chain. In Fields mode, choose the value's chip to pick one. A path the message does not have is sent empty, and there are no loops or conditions.
- 1 default:"n/a" sends your text when the value is empty.
- 2 truncate:35 keeps the first 35 characters. upper and lower change the case.
- 3 date:"iso", date:"unix", date:"date" or date:"text" writes a time as ISO, Unix seconds, a date or readable text.
- 4 join:", " joins a list, or the attachments by name.
- 5 times:0.01, divided_by:100, plus:5, minus:5 and round:2 do arithmetic on a number; text that is no number is left as it is.
- 6 json, number and bool come last and must be the whole template: the field then holds that value, not text. fields | json is every answer as an object.
- 7 fields | fields_list writes every answer as one line of text.
{ "ticket.title": "{{ subject | default:\"(no subject)\" }}", "ticket.priority": "{{ priority | default:\"normal\" }}", "amount": "{{ fields.amount | divided_by:100 | round:2 | number }}" }
Nest, name and limit
A name with dots nests: ticket.title is the title inside a ticket object. The builder stops a mapping that has too many fields, a template that is too long and a name nested too deep, and says which. The body is capped at 256 KB; past that the longest text values are cut and marked [truncated], and a value kept as data is never cut. Your endpoint reads the names you give, so write them to match what it already expects.
Check it before you save
- 1 Arrives as shows the result. Under Showing, pick a message from your inbox, a past delivery, or Homing's sample; the sample is used when the inbox is empty. Nothing is sent.
- 2 Request shows the headers and the body as sent, with Copy as curl. The curl is signed with a placeholder secret, so a receiver that checks the signature refuses it.
- 3 A field with a problem is marked, and Save stays off until it is fixed. Until you save, the next message is still sent the old way.
- 4 Choose Send a test. It posts Homing's sample message with the saved payload, so save first. It is a real request; a person can send up to 50 tests a day, 10 a minute.
Choose which messages
Which messages is separate from the payload and keeps it when you change it. It can pass every message, or only some priorities, forms, senders, notes to self, the first message of a thread, or messages whose form field equals a value.
Change it later
A delivery is built again each time it is tried, with the payload as saved then. A message that failed and is retried after you change the mapping goes out in the new shape. Homing keeps each delivery's status for 90 days, not the body it sent.
Do this with your agent
Once Homing support has turned on Account tools, a signed-in session can read an integration with list_integrations and change its payload with manage_integrations: action update with a template key, or a mapping of field names to templates. The preview shows the body on a sample. It saves only on your yes in a later message, and it never takes a URL or a secret: adding an integration and its URL stay in the app.
Look at my webhook integration in Homing. Change its payload so the endpoint gets ticket.title from the subject, ticket.priority from the priority (normal when empty), and my link from the message url. Preview it on the sample and wait for my yes before you save.