ASTERHome Services

Aster · Marketing integration demonstration

Turn an insight into a follow-up.

See how a company uses the Marketing API to build an audience, prepare an offer and save a campaign draft.

Read the Marketing API reference →
Example company
Aster Home Services
Input
An approved anonymous insight
Output
Audience, content and draft
Delivery
Nothing sent or charged

Aster Home Services

From an insight to a campaign draft.

Aster already records anonymous activity through the developer integration. Use its approved aster.activity insight to plan a follow-up for people who authorized entry.

  1. Read the insight catalog.
  2. Save an audience and count permitted matches.
  3. Save an offer in the content library.
  4. Create a campaign draft and read its report.
  5. Verify the same records in the marketing console.

The walkthrough saves an audience, content and a draft in the application selected here. It reuses matching walkthrough records when run again. Nothing is sent and nothing is charged.

This browser uses your existing marketing session. The downloadable server example runs the same workflow with a scoped API credential.

Checking your marketing session…

Sign in to marketing console

Sign in and select your Aster application to begin.

View saved records in marketing console →
Server SDK
import { MementomMarketingClient }
  from './mementom-marketing.mjs';
import { runMarketingDraftJourney, asterMarketingExample }
  from './mementom-aster-marketing-workflow.mjs';

const client = new MementomMarketingClient({
  baseUrl: 'https://mementom.app',
  credential: process.env.MEMENTOM_MARKETING_TOKEN,
  onTrace: console.log, // Safe metadata only.
});

const draft = await runMarketingDraftJourney(
  client,
  process.env.MEMENTOM_APPLICATION_ID,
  { ...asterMarketingExample }
);
Start with Aster. Integrate your company.

Select the registered Aster application with the approved aster.activity insight. If it is missing, visit the Aster developer demo and connect that application to your company. An entry authorization is not a purchase or payment.

In your integration, replace Aster’s configuration with your company, registered insight, offer and landing URL. The API calls and workspace rules stay the same.

Request debugger

Follow every message.

Each workspace response includes a trace ID. Inspect the request and its outcome below, or search the application’s saved API activity. Authorization headers and credential values are excluded.

Aster / your serverMarketing APIShared workspace

Run the walkthrough to see its requests here.

Use it in your company

Change the example, keep the API.

Aster supplies sample business inputs. Your integration supplies your company’s approved insight and campaign content.

Use the same server SDK from a scheduled job or your own marketing tools. An MCP server can wrap these operations for AI tools; that layer is a separate next step.

Read the integration guide →
Your company configuration
const configuration = {
  companyName: 'Your company',
  insightKey: 'shopping.interest',
  insightValue: 'compared',
  landingUrl: 'https://your-company.example/offers',
  content: {
    headline: 'Take another look',
    body: 'An offer for your next visit.',
    cta: 'View offer',
  },
};
// Use an insight registered for your application.
await runMarketingDraftJourney(
  client, applicationId, configuration
);

Use it from your server.

Download all three JavaScript files into the same directory. Use Node 22 or newer, set your base URL, application ID and credential in the server environment, then run the example.

Run the example
# Configure these in your secret manager:
# MEMENTOM_MARKETING_TOKEN
# MEMENTOM_APPLICATION_ID
# MEMENTOM_BASE_URL
# MEMENTOM_KEYRING_ORIGIN (optional; defaults to MEMENTOM_BASE_URL)

node mementom-aster-marketing.mjs