# How to invoke functions?

**URL:** <https://discourse.sst.dev/t/how-to-invoke-functions/2837>\
**Category:** General\
**Created:** [July 2, 2023, 1:54am UTC](https://discourse.sst.dev/t/how-to-invoke-functions/2837 "2023-07-02T01:54:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaclummys](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/zaclummys/32/1462_2.png) [@zaclummys](https://discourse.sst.dev/u/zaclummys)\
**Post date:** [July 2, 2023, 1:54am UTC](https://discourse.sst.dev/t/how-to-invoke-functions/2837/1 "2023-07-02T01:54:09Z")

</div>

I want to know how to invoke functions defined in `packages/functions` in my NextJS application inside `packages/web`. Example:

```auto
new Function(stack, 'my-function', {
    handler: 'packages/functions/index.handler',
});

```

```auto
lambda.invoke({
    FunctionName: 'my-function',
    InvocationType: 'Event',
    ...
});

```

For now, I do not want to use SQS, Events or API. The AWS Lamba offers a feature that is possible to invoke a function asynchronously just passing `InvocationType: 'Event'`.

How can I do that in SST framework?
