# InteractionService.PromptNotification

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [InteractionService](/reference/api/go/aspire.hosting/interactionservice.md)
- Version: `17.0.0`
- Kind: `method`

Prompts the user with a notification.

## Definition

```go
type InteractionService interface {
    // ... omitted for brevity
    PromptNotification(
        title string,
        message string,
        options ...*PromptNotificationOptions,
    ) (*BoolInteractionResult, error)
}
```

## Signature

```go
PromptNotification(
    title string,
    message string,
    options ...*PromptNotificationOptions,
) (*BoolInteractionResult, error)
```

## Parameters

- `title` (`string`)
- `message` (`string`)
- `options` (`...*PromptNotificationOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*PromptNotificationOptions` argument.

- `Options` ([`*InteractionNotificationOptions`](/reference/api/go/aspire.hosting/interactionnotificationoptions.md))
- `CancellationToken` (`*CancellationToken`)

## Returns

`(*BoolInteractionResult, error)`

Returns `(*BoolInteractionResult, error)`.

## Defined on

- [InteractionService](/reference/api/go/aspire.hosting/interactionservice.md) -- `interface`
